Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32900 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54209 invoked by uid 1010); 21 Oct 2007 07:52:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54193 invoked from network); 21 Oct 2007 07:52:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2007 07:52:03 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.238 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 66.249.82.238 wx-out-0506.google.com Received: from [66.249.82.238] ([66.249.82.238:44278] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/D8-30596-0250B174 for ; Sun, 21 Oct 2007 03:52:01 -0400 Received: by wx-out-0506.google.com with SMTP id s14so1275572wxc for ; Sun, 21 Oct 2007 00:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=pW9PVg0+UliEz3lSPoZtCoskqk6NUmjVoS+9TJQKhew=; b=chFzHS3zMrGml3M19uOdQzwbdqseaCUpL6e+MvadW6E10/ACCfLkGuHDCZz24phrDgn1D6+mPopfai6BQYRVPNkBFET29KL14Y9kRZyAb2OrS2I12k/QHGuvJHv2JIRkUieQ9dW9RdNo3KTCj3llnINcfKB+hhrUktQ5f0JiQOM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=klsedRLmFYMxpW9/nV8YoMgV20dP+wz1765RsfZV44tXIETKKwd9V8SuVwoYxarmwhkGS1tXA4oQCEncxl1BbxybiIkVBdVPEvXtn/dklDBPK39lR6MjUmV8jaPSZgqFMUV5ryKgTHjp7JIphbN8znqf6N+/UXOf36sy2oE05GI= Received: by 10.90.90.16 with SMTP id n16mr2517805agb.1192953118481; Sun, 21 Oct 2007 00:51:58 -0700 (PDT) Received: by 10.90.91.16 with HTTP; Sun, 21 Oct 2007 00:51:58 -0700 (PDT) Message-ID: Date: Sun, 21 Oct 2007 11:51:58 +0400 To: 131 <131.php@cloudyks.org> Cc: internals@lists.php.net In-Reply-To: <3A.87.03598.8A86A174@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <59.4C.00686.E8C68174@pb1.pair.com> <47187D00.7020406@cschneid.com> <3A.87.03598.8A86A174@pb1.pair.com> Subject: Re: [PHP-DEV] Undefined Constants behavior in PHP6 From: indeyets@gmail.com ("Alexey Zakhlestin") On 10/21/07, 131 <131.php@cloudyks.org> wrote: > It's not always a structural issue :/ It is > I'm sure non defined string interpretation is a bad thing it is definitely a bad thing, but it is a documented bad thing and I believe there are still some scripts which rely on this > I'm not a php core writter, but it have to be, even a little, more > complicated to use undefined constants as there "string" value, than as > "null" > > Maybe i'm the only one thinking that way. > I'll try to handle this by myself with parsekit & runkit ... use of undefined constants produces a E_NOTICE you can catch these in error-handler while debugging and fix the structure of code accordingly. -- Alexey Zakhlestin http://blog.milkfarmsoft.com/