On 12/09/2003 12:14 AM, Terence wrote:
Is there an application somewhere that can be used to determine incompatibilities with different versions of PHP of ones code? Something like a recursive directory scan checking functions used and determining the versions they will / won't work on. Hope this makes sence.
I do not know if this is what you are looking for. Here you may find a class that comes with a few functions that had their behaviour broken between PHP 4.0 and 4.2 .
The class provides functions the reproduce the original behaviour as well a script that tests whether the original functions were broken in the current version that you use.
Class: Fixed functions broken before PHP 4.2.0 http://mlemos.users.phpclasses.org/fixedfunctions
These are just functions that were broken despite PHP developers do not agree that they should not have been broken, so they will not fix them.
There are certainly many functions that were broken between versions but were fixed. For that you may want to try PHP test suite scripts that come with the latest PHP version and try them in the PHP version that you use.
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php