At 18:58 06/01/2004, Alan Knowles wrote:
This only affects single line conditional class and function declarations.

php -r ' if (1) { function test () { echo "1"; }} else { function
test() { echo "0"; }} test();'

It affects php4.3.2 and up. (and probably alot earlier....)

Wow, that's a neat one. Took me a while to realize what the heck is going on, but basically it has to do with the way the engine mangles function/class names. It's based on the file name and the line number. This *usually* works, practically, it always works except for when using -r (which probably didn't exist at the time we introduced this mangling...


Anyway, I'll look into fixing it. Thanks for pinpointing the problem!

Zeev

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to