Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26018 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23204 invoked by uid 1010); 10 Oct 2006 19:51:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23189 invoked from network); 10 Oct 2006 19:51:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2006 19:51:07 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 213.152.38.186 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 213.152.38.186 freshmint.phcomp.co.uk Linux 2.5 (sometimes 2.4) (4) Received: from [213.152.38.186] ([213.152.38.186:62984] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/CD-25847-8A9FB254 for ; Tue, 10 Oct 2006 15:51:05 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.63) (envelope-from ) id 1GXNcz-0006ex-Tc; Tue, 10 Oct 2006 20:51:01 +0100 Date: Tue, 10 Oct 2006 20:51:01 +0100 To: Ilia Alshanetsky Cc: internals@lists.php.net Message-ID: <20061010195101.GE12336@mint.phcomp.co.uk> References: <20061010185225.GD12336@mint.phcomp.co.uk> <495A0D95-A741-4C54-A150-B0C3F43DF15B@prohost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <495A0D95-A741-4C54-A150-B0C3F43DF15B@prohost.org> User-Agent: Mutt/1.4.1i Organization: Parliament Hill Computers Ltd Subject: Re: [PHP-DEV] variable declaration From: addw@phcomp.co.uk (Alain Williams) 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