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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php