Jump to content

update v 5.3.x => v 5.5.x


Recommended Posts

Hi there,

 

we have been using PHP 5.3.18 for some time and would like to upgrade to version 5.5.10.

We build PHP from source.

When configuring PHP 5.5.10 with our options we get back an error message:

 

WARNING: unrecognized options:
--enable-magic-quotes, --enable-mm, --enable-safe-mode, --enable-trans-sid, --with-dom, --with-xml

 

Are this options enabled in PHP 5.5 by default?

Did their names change?

Are they obsolete (no replacement)?

 

Thanks,

Blondie

Link to comment
Share on other sites

from that list, at least magic-quotes and safe-mode have been completely removed from php.

 

if you are upgrading php versions, you need to read the relevant php version migration sections in the php.net documentation appendices so that you are aware of the changes that will not only affect the options when you build php, but may also require changes to your code.

 

ref: http://www.php.net/manual/en/appendices.php

Link to comment
Share on other sites

Hi,

 

I tried to update to PHP 5.5.10, but a lot of code does not work without problems, e.g.:

 

Mar 25 11:49:37 server httpd: PHP Warning:  flock() expects parameter 1 to be re
source, boolean given in ...

Mar 25 11:54:22 server httpd: PHP Warning:  PHP Startup: Unable to load dynamic
library '/usr/local/lib/php/extensions/suhosin.so' - /usr/local/lib/php/extensio
ns/suhosin.so: undefined symbol: output_globals in Unknown on line 0   


Mar 25 11:56:51 server httpd: PHP Fatal error:  Call to undefined function impor
t_request_variables() in ...


Mar 25 12:02:11 server httpd: PHP Warning:  imagejpeg(): Filename cannot be empt
y in ...


Mar 25 12:19:06 server httpd: PHP Warning:  fopen(./assets/plugindata/captchadat
a.php): failed to open stream: Permission denied in ...

Mar 25 13:48:54 server httpd: PHP Warning:  getimagesize(A/.gif): failed to open
 stream: No such file or directory in ...

 

 

Thus I guess the PHP programmers will have to change their code, running with PHP 5.5.x.

 

CU

Link to comment
Share on other sites

I didn't have any issues by compiling a php version 5.5.10 on my centos6.4 machine and everything works just fine.

Here are all configure options that I've used: 

[root@localhost php-5.5.10]# ./configure --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d \ 
--with-apxs2 --with-libdir=lib64 --with-mysql --with-mysqli \
--with-pdo-mysql --with-mysql-sock --with-gd --with-vpx-dir \
--with-jpeg-dir --with-png-dir -with-zlib-dir --with-xpm-dir \
--with-freetype-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-curl
Edited by jazzman1
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.