LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 17 PHP 5.3 downgrade (https://www.linuxquestions.org/questions/fedora-35/fedora-17-php-5-3-downgrade-4175413875/)

Ipolit 06-28-2012 01:44 PM

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

John VV 06-28-2012 04:55 PM

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

Ipolit 06-29-2012 12:42 AM

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


John VV 06-29-2012 01:18 AM

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

Ipolit 06-29-2012 11:52 AM

Downgrade to php 5.3 worked for us.
Thanks for the help.
I hope it will be fixed soon in php 5.4

delanounou 04-18-2013 12:31 PM

Quote:

Originally Posted by Ipolit (Post 4715106)
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 ?

stolari 05-02-2013 06:33 PM

Quote:

Originally Posted by delanounou (Post 4934160)
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.


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