Re: variable declaration

From: Date: Tue, 10 Oct 2006 19:51:01 +0000
Subject: Re: variable declaration
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-26018@lists.php.net to get a copy of this message
On Tue, Oct 10, 2006 at 02:59:45PM -0400, Ilia Alshanetsky wrote: > If 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'; One is a typeo. > On 10-Oct-06, at 2:52 PM, Alain Williams wrote: > > http://bugs.php.net/bug.php?id=39091 -- Alain Williams Parliament Hill Computers Ltd. Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ #include <std_disclaimer.h>

« previous php.internals (#26018) next »