--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; } ?> --EXPECT-- Maximum call stack size reached. Infinite recursion?