Re: variable declaration

From: Date: Tue, 10 Oct 2006 18:59:45 +0000
Subject: Re: variable declaration
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26017@lists.php.net to get a copy of this message
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. On 10-Oct-06, at 2:52 PM, Alain Williams wrote:
Hi, just trying to canvass support for the ability to enforce declaration of variables as with perl's use strict: http://bugs.php.net/bug.php?id=39091
Ilia Alshanetsky

« previous php.internals (#26017) next »