Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31306 invoked by uid 1010); 10 Oct 2006 20:08:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31291 invoked from network); 10 Oct 2006 20:08:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2006 20:08:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.196 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.162.196 nz-out-0102.google.com Linux 2.4/2.6 Received: from [64.233.162.196] ([64.233.162.196:57151] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/1F-25847-7ADFB254 for ; Tue, 10 Oct 2006 16:08:07 -0400 Received: by nz-out-0102.google.com with SMTP id 34so492698nzf for ; Tue, 10 Oct 2006 13:08:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=KApwRsLj2ueKB85KX/c9YWmV+2r5N1zZ1Do4LUNdcEGsgM69l84UCpYmSJB/YAnOqDbKnObn1QkE/jcC3GW9EOVK4Zl0T5jBh/XG4rZCYGiVoE+5s11+SmuoIFmUahXVHvT9CeUM+soV58emXV65Yltc//0ZSQKEWgRtf/qTDZI= Received: by 10.65.219.14 with SMTP id w14mr12387454qbq; Tue, 10 Oct 2006 13:08:04 -0700 (PDT) Received: from ?192.168.1.6? ( [74.108.68.217]) by mx.google.com with ESMTP id q14sm8903498qbq.2006.10.10.13.08.04; Tue, 10 Oct 2006 13:08:04 -0700 (PDT) In-Reply-To: <20061010195101.GE12336@mint.phcomp.co.uk> References: <20061010185225.GD12336@mint.phcomp.co.uk> <495A0D95-A741-4C54-A150-B0C3F43DF15B@prohost.org> <20061010195101.GE12336@mint.phcomp.co.uk> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Tue, 10 Oct 2006 16:08:03 -0400 To: Alain Williams X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] variable declaration From: ilia@prohost.org (Ilia Alshanetsky) On 10-Oct-06, at 3:51 PM, Alain Williams wrote: > 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'; Both of these represent valid syntax as far as I am concerned and should not generate errors. Ilia Alshanetsky