Re: Compatibility problems with PHP 5

From: Date: Tue, 02 Dec 2003 12:14:12 +0000
Subject: Re: Compatibility problems with PHP 5
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-5995@lists.php.net to get a copy of this message
Andi Gutmans wrote:
E_STRICT will be disabled by default. It is only meant for people who want to be sure that they are using the recommended methods, and that definitely includes not using var.
The problem is that it doesn't match the real world. People _are_ using PEAR and people _are_ using PHP4. So they simply _can't_ change var to public. So E_STRICT is currently way too noisy for them. Hence they'll not use it. That's why I think two levels (e.g. E_STRICT for backward compatible stuff and E_PEDANTIC for everything) makes sense. Or call it E_DEPRECATED and E_STRICT if you want. I for one would love to use E_DEPRECATED if it existed but I can't use E_NOTICE (I use uninitialized variables all the time, it's one of the main features of PHP for me) or E_STRICT (my code has to work on PHP4). - Chris

« previous php.internals (#5995) next »