From 29b44b451a779d6d967a7ae8a0018ce0629a0ba6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 26 Oct 2023 08:12:10 +0200 Subject: [PATCH] fast_add_function removed in 8.3 --- kernels/ZendEngine3/operators.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernels/ZendEngine3/operators.h b/kernels/ZendEngine3/operators.h index 059f0a0fe..f481d7c3e 100755 --- a/kernels/ZendEngine3/operators.h +++ b/kernels/ZendEngine3/operators.h @@ -146,7 +146,11 @@ long zephir_safe_mod_double_zval(double op1, zval *op2); #define zephir_get_boolval(z) (Z_TYPE_P(z) == IS_TRUE ? 1 : (Z_TYPE_P(z) == IS_FALSE ? 0 : zephir_get_boolval_ex(z))) #define zephir_get_charval(z) (Z_TYPE_P(z) == IS_LONG ? Z_LVAL_P(z) : zephir_get_charval_ex(z)) +#if PHP_VERSION_ID >= 80300 +#define zephir_add_function(result, left, right) add_function(result, left, right) +#else #define zephir_add_function(result, left, right) fast_add_function(result, left, right) +#endif #define zephir_sub_function(result, left, right) sub_function(result, left, right) #define zephir_pow_function(result, op1, op2) pow_function(result, op1, op2) #define zephir_increment(var) increment_function(var)