Re: error_handler
| From: | John Coggeshall | Date: | Fri, 19 Dec 2003 20:50:42 +0000 |
| Subject: | Re: error_handler | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6628@lists.php.net to get a copy of this message | ||
On Fri, 2003-12-19 at 10:13, Daniel Convissor wrote:
> I, and lots of people, need to worry about it. I write code that uses
> PHP. Much of it is for general public consumption. Some is for sale at
> significant cost. I have to write stuff once and have it work anywhere.
If you are concerned about code working in PHP 4 and PHP 5, then you
should be writing your code to PHP 4 and it should still work in PHP 5
for the most part. If you would like to take advantage of this proposed
error reporting functionality, then you can use version_compare() and
adjust your logic accordingly for PHP5->PHP4 transitions..
PHP 5 already introduces a thousand new things that don't work in PHP 4.
I think trying to stop an improvement because it's not PHP 4 compatible
is a mistake.
John
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www.coggeshall.org/
The PHP Developer's Handbook http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-