mirror of
https://github.com/php/php-src.git
synced 2026-03-29 11:42:17 +02:00
The code checks if stack is a NULL pointer. Below that if the stack->next pointer is updated unconditionally. Therefore a call with a NULL pointer will crash, even though the if (stack) check seems to show the intent that it is valid to call the function with NULL. The function is not meant to be called with NULL, so just ZEND_ASSERT instead.
19 KiB
19 KiB