|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-03 14:01 UTC] iliaa@php.net
[2006-11-04 14:47 UTC] cynic@php.net
[2006-11-23 18:24 UTC] ken at smallboxsoftware dot net
[2007-06-15 05:35 UTC] judas dot iscariote at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ Doing a in_array() check against an array containing objects with recursive dependency causes a "Nesting level too deep - recursive dependency?" fatal error. Reproduce code: --------------- <?php class A { public $b; } class B { public $a; } $a = new A; $b = new B; $b->a = $a; $a->b = $b; $test = array($a, $b); var_dump(in_array($a, $test)); Expected result: ---------------- bool(true), as in PHP5.1.6 Actual result: -------------- Fatal error: Nesting level too deep - recursive dependency? in [FILENAME] on line 19