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
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
. 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
//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
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
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