Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36575 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71684 invoked from network); 26 Mar 2008 20:51:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2008 20:51:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 213.46.255.22 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 213.46.255.22 viefep18-int.chello.at Solaris 10 (beta) Received: from [213.46.255.22] ([213.46.255.22:6802] helo=viefep18-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/DE-47041-E47BAE74 for ; Wed, 26 Mar 2008 15:51:27 -0500 Received: from edge04.upc.biz ([192.168.13.239]) by viefep18-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080326205124.DTZT18951.viefep18-int.chello.at@edge04.upc.biz>; Wed, 26 Mar 2008 21:51:24 +0100 Received: from genuine.home ([84.112.136.139]) by edge04.upc.biz with edge04 id 5wqx1Z02K30dqkc0100000; Wed, 26 Mar 2008 21:51:24 +0100 X-SourceIP: 84.112.136.139 Received: from ncvielp07.home ([192.168.1.51]) by genuine.home with esmtpa (Exim 4.50) id 1JecYS-0001ds-4q; Wed, 26 Mar 2008 21:49:04 +0100 Message-ID: <47EAB731.5030909@fischer.name> Date: Wed, 26 Mar 2008 21:50:57 +0100 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Hannes Magnusson CC: Stanislav Malyshev , Cristian Rodriguez , php-dev References: <1206536686.5423.13.camel@felipe> <47EA7C40.3050407@zend.com> <7d5a202f0803260955p648f5ae8u2755081c7b5b5b53@mail.gmail.com> <47EA842D.2040203@zend.com> <7f3ed2c30803261102x25948830sc19819b3ae1cab27@mail.gmail.com> In-Reply-To: <7f3ed2c30803261102x25948830sc19819b3ae1cab27@mail.gmail.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=C2272BD0; url=http://markus.fischer.name/my_public_key.txt Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -32 X-Spam-Level: --- X-Spam-Report: Spam detection software, running on the system "genuine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Hannes Magnusson wrote: > $foo = 2; > while(true) { > while(true) { > echo "Hello world!\n"; > if (true) { > break $foo; > } > } > echo "Never reached\n"; > } > > This is what was removed. not normal "break 2;" [...] Content analysis details: (-3.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.4964] -0.0 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] Backporting to 5_3 From: markus@fischer.name (Markus Fischer) Hi, Hannes Magnusson wrote: > $foo = 2; > while(true) { > while(true) { > echo "Hello world!\n"; > if (true) { > break $foo; > } > } > echo "Never reached\n"; > } > > This is what was removed. not normal "break 2;" According to Google Code Search ( http://www.google.com/codesearch?q=lang%3Aphp+break\s%2B\%24&hl=en&btnG=Search+Code ) there are only two distinct pieces of code out there using dynamic break: "never heard of" XPath.class.php and "also never heard of" some code deep inside this Xayara CMS. Although it seems XPath.class.php is used by some projects (phpmyadmin, phpgroupware, falbum, lifetype) I checked phpmyadmin and at least in 2.9.1 this class is not included anymore. On the other hand, dynamic continie only seems to be used in PhpDocumentor: http://www.google.com/codesearch?hl=en&lr=&q=lang%3Aphp+continue\s%2B\%24&btnG=Search Havent't checked if that one is still used. - Markus