From 1df0889dfd1bbd0a32e2a893c1c7bddea9237288 Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Mon, 7 Oct 2024 13:30:14 -0300 Subject: [PATCH] Fix regression on platforms without ZEND_CHECK_STACK_LIMIT There was a guard on one instance of this, but not the other. Unsure if this is the best place for this. --- ext/standard/var.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/var.c b/ext/standard/var.c index 248bf086c3caf..f16b4d31ab656 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -1052,7 +1052,9 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_ } if (UNEXPECTED(php_serialize_check_stack_limit())) { +#ifdef ZEND_CHECK_STACK_LIMIT zend_call_stack_size_error(); +#endif return; }