Re: php4 to php5

From: Date: Wed, 23 Jan 2008 13:01:10 +0000
Subject: Re: php4 to php5
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-18496@lists.php.net to get a copy of this message
Hi Richard. You might find the following usefull: http://www.php.net/manual/en/migration5.php PHP 5 has a new directive called:- zend.ze1_compatibility_mode boolean Enable compatibility mode with Zend Engine 1 (PHP 4). It affects the cloning, casting (objects with no properties cast to FALSE or 0), and comparing of objects. In this mode, objects are passed by value instead of reference by default. http://www.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode http://www.php.net/manual/en/migration5.newconf.php I'm running PHP 5.2.4 on Fedora 8. I found 5.2.5 a bit buggy. I have not used the zend.ze1_compatibility_mode, as all my code has been converted to PHP 5 - which is alot better OOP syntax than PHP 4. zend.ze1_compatibility_mode "0" PHP_INI_ALL This option can be set anywhere, i.e. in any of the following places: Constant Value Meaning PHP_INI_USER 1 Entry can be set in user scripts or in Windows registry PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf PHP_INI_ALL 7 Entry can be set anywhere So you have the option of telling PHP to use the zend.ze1_compatibility_mode = 1 for your older PHP4 scripts, and allowing PHP5 to be used for newer scripts you write. How you chose to do that is entirely up to you. N.B. zend.ze1_compatibility_mode will be removed from PHP6. HTH Keith Roberts. ----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] ----------------------------------------------------------------- On Tue, 22 Jan 2008, Richard Pyne wrote:
To: php-install@lists.php.net From: Richard Pyne <rpyne@kinfolk.org> Subject: [PHP-INSTALL] php4 to php5 I am being pushed to update our prodction server from php 4.4.2 to php 5.2.5 because of an alert from ScanAlert claiming that there are vulnerabilities in any php version prior to 5.2.5. My concern is that we have several quite old php apps running on the machine and I hav neither the time nor the inclination to learn them well enough to debug and update them if they break. My question is what kind of problems am I likely to experience with the update? Thanks, --Richard


« previous php.install (#18496) next »