Skip to content

Commit

Permalink
Merge pull request #2418 from remicollet/issue-fast_add
Browse files Browse the repository at this point in the history
fast_add_function removed in 8.3
  • Loading branch information
Jeckerson authored Oct 26, 2023
2 parents 6773f19 + 29b44b4 commit 90fbe76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernels/ZendEngine3/operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90fbe76

Please # to comment.