How about this PHP developers: You could make a global variable (or
constant) the user can set like

define('PHP_COMPATIBLE_VERSION', '5.0.1');

or something to tell PHP 6 to interpret it like PHP 5.x . That way, at least
you are guaranteed that the code will work like on that version. It might
make PHP 6 (a lot?) bigger but it might be worth the cost, since all Sites
written in PHP will still work. The functions could still have a performance
boost that way if there are better algorithms.

php5 introduced this:

http://au.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode

to make sure php5 interpreted php4 code in a b/c way, they may do something similar for php6 -> php5.

Doing it at runtime is silly imo.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to