LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-28-2012, 01:44 PM   #1
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Rep: Reputation: 31
Fedora 17 PHP 5.3 downgrade


I am trying to install php_gtk2 on Fedora 17. Unfortunately, I can't compile it - always ends with error. I searched the Internet and a lot of people report such errors with PHP 5.4.
I installed Fedora 16 which is with PHP 5.3 and php_gtk2 compiles without any issues.
Is there any easy way to downgrade PHP from 5.4 to 5.3 using yum without compiling php.

Thank you
 
Old 06-28-2012, 04:55 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,953

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
you know posting the error would help

but i am guessing it is do to fedora 17 using gcc4.7
install gcc 4.6 or 4.5 along side 4.7

then build php
 
Old 06-29-2012, 12:42 AM   #3
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Original Poster
Rep: Reputation: 31
I still believe it is php issue. Here is the build error

Code:
/home/k.kirev/php-gtk/main/phpg_support.c: In function 'phpg_init_object':
/home/k.kirev/php-gtk/main/phpg_support.c:276:42: error: 'zend_class_entry' has no member named 'default_properties'
/home/k.kirev/php-gtk/main/phpg_support.c: In function 'phpg_register_class':
/home/k.kirev/php-gtk/main/phpg_support.c:314:4: error: 'zend_class_entry' has no member named 'builtin_functions'
/home/k.kirev/php-gtk/main/phpg_support.c: In function 'phpg_register_interface':
/home/k.kirev/php-gtk/main/phpg_support.c:367:7: error: 'zend_class_entry' has no member named 'builtin_functions'
make: *** [main/phpg_support.lo] Error 1
 
Old 06-29-2012, 01:18 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,953

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
that error looks like a now fixed bug with gcc 4.7
the June 14 update to php 5.4.4 ( or in SVN)
"should" build in gcc 4.7 on fedora 17 ????????

welcome to using fedora
Things like this are VERY common .Fedora is often to new to build and use a lot of programs
At least with out some hacking


as to downgrading to php5.3
put an exclude in the fedora-update.repo for php
and manually install the old 16 php 5.3

but building php with gcc 4.6 and not 4.7 also should fix the issue
you can have more than one version installed side by side
just do some research . I have gcc 4.6,4.1 and 3.3 installed at this time

Last edited by John VV; 06-29-2012 at 01:27 AM.
 
Old 06-29-2012, 11:52 AM   #5
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Original Poster
Rep: Reputation: 31
Downgrade to php 5.3 worked for us.
Thanks for the help.
I hope it will be fixed soon in php 5.4
 
Old 04-18-2013, 12:31 PM   #6
delanounou
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Ipolit View Post
Downgrade to php 5.3 worked for us.
Thanks for the help.
I hope it will be fixed soon in php 5.4
How did you the downgrade from php 5.4 to 5.3 on fedora 17 ?
 
Old 05-02-2013, 06:33 PM   #7
stolari
LQ Newbie
 
Registered: May 2013
Distribution: Fedora 17
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by delanounou View Post
How did you the downgrade from php 5.4 to 5.3 on fedora 17 ?
I'm not sure how they did it, but I would go to the php download page on their site pick a source code to download, and compile it myself because yum will almost always give you the latest version.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Downgrade php from 5.3 to 5.1.6 in RHEL 6.2 hrs.blr89 Linux - Server 4 07-09-2012 06:29 AM
Fedora Core 6 Downgrade PHP 5.1.6 to 4.4.4 Randvegeta Linux - Server 7 02-03-2007 02:51 PM
how do you downgrade php plainusdonuticus Linux - Newbie 3 01-04-2007 04:41 PM
Fedora Core 5- MySQL Downgrade dereko Linux - Software 3 07-27-2006 10:59 AM
Downgrade Fedora Core Kernel redneon Linux - Software 2 07-15-2004 03:09 AM


All times are GMT -5. The time now is 07:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration