--TEST-- GH-15169 (stack overflow when var serialization in ext/standard/var) --SKIPIF-- --INI-- zend.max_allowed_stack_size=512K --FILE-- next = $newNode; $node = $newNode; } try { serialize($firstNode); } catch (Error $e) { echo $e->getMessage(), "\n"; } while ($next = $firstNode->next) { $firstNode->next = $next->next; } ?> --EXPECTF-- Maximum call stack size of %d bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?