Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83095 invoked by uid 1010); 10 Oct 2006 18:59:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83080 invoked from network); 10 Oct 2006 18:59:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2006 18:59:51 -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.201 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.201 nz-out-0102.google.com Linux 2.4/2.6 Received: from [64.233.162.201] ([64.233.162.201:33044] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/B6-25847-5ADEB254 for ; Tue, 10 Oct 2006 14:59:50 -0400 Received: by nz-out-0102.google.com with SMTP id 8so460621nzo for ; Tue, 10 Oct 2006 11:59:47 -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=uuzNUNBs1mgo4wvaIVuHsD8sC+Yoj5pJx7GGmuQhiFtLU/WdSE39kvAgUTv1xC+j/Q0tg1hcaooPNRrCEHqyzsDAUOf2rFw/Z/g8P+B/eeuUvNQy+7/j+YNrM8BF+0ibO1FwXvETz+uhWgcCoKmL/jMrsNmBZOj3MXnmvlKyPns= Received: by 10.65.35.6 with SMTP id n6mr5971492qbj; Tue, 10 Oct 2006 11:59:46 -0700 (PDT) Received: from ?192.168.1.6? ( [74.108.68.217]) by mx.google.com with ESMTP id f12sm747568qba.2006.10.10.11.59.46; Tue, 10 Oct 2006 11:59:46 -0700 (PDT) In-Reply-To: <20061010185225.GD12336@mint.phcomp.co.uk> References: <20061010185225.GD12336@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: <495A0D95-A741-4C54-A150-B0C3F43DF15B@prohost.org> Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Tue, 10 Oct 2006 14:59:45 -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) 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