You are not logged in.

#1 2012-06-03 19:58:57

YellowSloth
Member
Registered: 2012-06-03
Posts: 1

Downgrading php-fpm from 5.4.3 to 5.3.8

Good evening,

Upgrading php(-fpm) to 5.4.3 has gotten me into much trouble with all kinds of applications of which the developers haven't adjusted yet. For that reason I would like to get back to 5.3.8, but the downgrading doesn't go as easily as I had hoped. For example, when I downgrade to php-fpm 5.3.8 and try to reload, I get the following error:

php-fpm: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

So then I would have to downgrade pcre too, I think, though doing that still gives me the same error.

I was wondering if someone could give me a direction to downgrading this package. Thanks in advance.

EDIT:

I tried again, but then linked libpcre.so to libpcre.so.0, but then I got all kinds of other errors, like:

PHP Warning:  PHP Startup: curl: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20090626
These options need to match

That above is a couple times for different modules.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xsl.so' - /usr/lib/php/modules/xsl.so: undefined symbol: zend_new_interned_string in Unknown on line 0

And this also happens a couple times, for xsl, apc and imagick.

Last edited by YellowSloth (2012-06-03 20:11:57)

Offline

#2 2012-06-03 21:59:39

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: Downgrading php-fpm from 5.4.3 to 5.3.8

You need to compile your own set of PHP 5.3 packages then. Just download the last 5.3 PKGBUILD and adjust that. Also don't use 5.3.8 but 5.3.13. as it contains several security fixes.

But: it is most likely easier to get your apps to work with 5.4.

Offline

#3 2012-06-04 12:37:22

sagattarii
Member
Registered: 2008-11-10
Posts: 19

Re: Downgrading php-fpm from 5.4.3 to 5.3.8

I aggre with Pierre.

Here is a list of changes: http://www.php.net/manual/en/migration5 … atible.php

There shouldn't be too many problems if your apps work with 5.3.x EXCEPT your devs use features that have been already depricated in 5.3.x.
For all the big php applications there are updates for 5.4.x available (Drupal, Wordpress, Typo3 etc.)

Offline

Board footer

Powered by FluxBB