Re: variable declaration
| From: | Ilia Alshanetsky | Date: | Tue, 10 Oct 2006 20:08:03 +0000 |
| Subject: | Re: variable declaration | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26020@lists.php.net to get a copy of this message | ||
On 10-Oct-06, at 3:51 PM, Alain Williams wrote:
On Tue, Oct 10, 2006 at 02:59:45PM -0400, Ilia Alshanetsky wrote:Both of these represent valid syntax as far as I am concerned and should not generate errors. Ilia AlshanetskyIf you want to emulate perl's "strict" mode just add an error_handler () that will catch E_NOTICE relating to undefined variable, constant, array key usage and convert them to fatal errors.No, it doesn't do the same thing, it won't pick up the following: $fo0 = 'bill'; ... $foo = 'ben';