Re: [PHP-DEV] deep compare: nesting level too deep

2003-01-24 Thread Vaclav Dvorak
Moriyoshi Koizumi wrote: On Sat, Jan 25, 2003 at 01:00:53AM +0100, Vaclav Dvorak wrote: When I try to compare two "child" objects, PHP says: "Fatal error: Nesting level too deep - recursive dependency?". Well, yes, it _is_ a recursive dependency, but I don't see

[PHP-DEV] deep compare: nesting level too deep

2003-01-24 Thread Vaclav Dvorak
ects anyway? Isn't it possible to tell whether two "names" reference the same "variable"? In fact, I'm comparing two references to the very same object, so the comparison could stop right there and not compare any members of the object. Vaclav Dvorak <[EMA

Re: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-22 Thread Vaclav Dvorak
. In my bug, nested foreach on a copy works, but not on a reference. So there, I'm not such a complete idiot, you know. ;-) Regards, Vaclav Dvorak -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-22 Thread Vaclav Dvorak
//lxr.php.net/source/php4/Zend/zend_execute.c#2251 (search for "case ZEND_FE_RESET:" if line numbers shift). BTW, what's the relation of http://lxr.php.net/source/php4/Zend/ and http://lxr.php.net/source/Zend/ ? Vaclav Dvorak <[EMAIL PROTECTED]> -- PHP Development Mailing

Re: [PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread Vaclav Dvorak
ycle: " . $b . "\n"; echo "-- current in cycle: " . current($a) . "\n"; } echo "current before foreach: " . current($a) . "\n"; ?> Try it, and the delete the hash mark and try again. Regards, Vaclav Dvorak -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] foreach nastiness with references (bug #21702)

2003-01-21 Thread Vaclav Dvorak
etion, the array's internal pointer will be at the end of the array." Regards, Vaclav Dvorak <[EMAIL PROTECTED]> -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php