blondie72 Posted March 24, 2014 Share Posted March 24, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/287223-update-v-53x-v-55x/ Share on other sites More sharing options...
jazzman1 Posted March 24, 2014 Share Posted March 24, 2014 (edited) I'm not compiled this version of php. However, what says - ./configure --help ? Edited March 24, 2014 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/287223-update-v-53x-v-55x/#findComment-1473667 Share on other sites More sharing options...
blondie72 Posted March 24, 2014 Author Share Posted March 24, 2014 I'm not compiled this version of php. However, what says - ./configure --help ? Hi , Thanks for your reply. The options in question do not appear in the output. There are lots of new options though. CU Quote Link to comment https://forums.phpfreaks.com/topic/287223-update-v-53x-v-55x/#findComment-1473669 Share on other sites More sharing options...
mac_gyver Posted March 24, 2014 Share Posted March 24, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/287223-update-v-53x-v-55x/#findComment-1473685 Share on other sites More sharing options...
blondie72 Posted March 26, 2014 Author Share Posted March 26, 2014 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 resource, boolean given in ...Mar 25 11:54:22 server httpd: PHP Warning: PHP Startup: Unable to load dynamiclibrary '/usr/local/lib/php/extensions/suhosin.so' - /usr/local/lib/php/extensions/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 import_request_variables() in ...Mar 25 12:02:11 server httpd: PHP Warning: imagejpeg(): Filename cannot be empty in ...Mar 25 12:19:06 server httpd: PHP Warning: fopen(./assets/plugindata/captchadata.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 Quote Link to comment https://forums.phpfreaks.com/topic/287223-update-v-53x-v-55x/#findComment-1473937 Share on other sites More sharing options...
jazzman1 Posted March 30, 2014 Share Posted March 30, 2014 (edited) 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 March 30, 2014 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/287223-update-v-53x-v-55x/#findComment-1474429 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.