Re: Backporting to 5_3

From: Date: Wed, 26 Mar 2008 20:50:57 +0000
Subject: Re: Backporting to 5_3
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-36575@lists.php.net to get a copy of this message
Hi, Hannes Magnusson wrote:
<?php $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

« previous php.internals (#36575) next »