Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33385 invoked by uid 1010); 26 Nov 2005 13:57:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33369 invoked from network); 26 Nov 2005 13:57:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 13:57:22 -0000 X-Host-Fingerprint: 84.60.44.127 dslb-084-060-044-127.pools.arcor-ip.net Received: from ([84.60.44.127:14074] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A8/21-56276-2C968834 for ; Sat, 26 Nov 2005 08:57:22 -0500 Message-ID: To: internals@lists.php.net Date: Sat, 26 Nov 2005 14:57:17 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 References: <7.0.0.16.2.20051124161240.0573e640@zend.com> <90.0E.56276.6D207834@pb1.pair.com> <200511251419.56809.pookey@pookey.co.uk> <57.B8.56276.65B27834@pb1.pair.com> <73998811.20051125204046@marcus-boerger.de> <438782C6.80008@gmail.com> <43878626.5060300@lerdorf.com> <512771162.20051125225926@marcus-boerger.de> <6B.D6.56276.154E7834@pb1.pair.com> <1638013035.20051126122138@marcus-boerger.de> In-Reply-To: <1638013035.20051126122138@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 84.60.44.127 Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: oliver.graetz@arcor.de (=?ISO-8859-1?Q?Oliver_Gr=E4tz?=) Marcus Boerger schrieb: > Hello Oliver, > > it doesn't matter to the compiler whether it is nonsense or not. > The only thing that matters is whether i can write a correct > lexer/parser for this without breaking stuff. Guys if we were requiring > space around the ternary or anything else we don't do right now then > the damage is much much worse than with class Date. If I read Jessie correctly, the parser will throw an error now if the usage is unclear with the ternary (a:b:c:d). So the real problem is when namespace constants are not used but the parser thinks that he's reading some: $a = ($b)? c:d; Are c and d constants or is this the constant d in the namespace c? More problems arise if the thrid argument is made optional (wasn't this raised with the ifsetor issue?). OK, I get the problem. Jessie, what are you parsing from the thing up there? Will you eat this as class constant or will this correctly be read as "constant a, else constant b"? Then again: I don't need namespace constants, but what about the existing defined constants in globals namespace? Will they stay global until they're all put into classes? OLLi