From: Dmitry Stogov Date: Fri, 5 Jun 2015 07:04:58 +0000 (+0300) Subject: Fixed bug #69756 (Fatal error: Nesting level too deep - recursive dependency? with... X-Git-Tag: php-7.0.0alpha1~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed5fbf5e49eab435cd7a0a9a5627698de92887c1;p=php Fixed bug #69756 (Fatal error: Nesting level too deep - recursive dependency? with ===) --- diff --git a/Zend/bug69756.phpt b/Zend/bug69756.phpt new file mode 100644 index 0000000000..ca638fb2d6 --- /dev/null +++ b/Zend/bug69756.phpt @@ -0,0 +1,12 @@ +--TEST-- +Fixed bug #69756 (Fatal error: Nesting level too deep - recursive dependency? with ===). +--FILE-- + +--EXPECT-- +bool(true) +bool(true) diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index bb0a2ff24a..b8d3b1f389 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -71,7 +71,7 @@ static void _zend_is_inconsistent(const HashTable *ht, const char *file, int lin #define HASH_PROTECT_RECURSION(ht) \ if ((ht)->u.flags & HASH_FLAG_APPLY_PROTECTION) { \ - if ((ht)->u.flags >= (3 << 8)) { \ + if (((ht)->u.flags & 0xff00) >= (3 << 8)) { \ zend_error_noreturn(E_ERROR, "Nesting level too deep - recursive dependency?");\ } \ ZEND_HASH_INC_APPLY_COUNT(ht); \