Skip to content

Commit 0292f9b

Browse files
committed
Renamed function zend_power_base_0_exponent_lt_eq_0_error
1 parent fc4cf9f commit 0292f9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_operators.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,15 +1287,15 @@ ZEND_API zend_result ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *o
12871287
}
12881288
/* }}} */
12891289

1290-
static void ZEND_COLD zend_power_base_0_exponent_lt_eq_0_error(void)
1290+
static void ZEND_COLD zend_power_base_0_exponent_lt_0_error(void)
12911291
{
12921292
zend_error(E_DEPRECATED, "Power of base 0 and negative exponent is deprecated");
12931293
}
12941294

12951295
static zend_result safe_pow(double *result, double base, double exponent)
12961296
{
12971297
if (UNEXPECTED(base == 0.0 && exponent < 0.0)) {
1298-
zend_power_base_0_exponent_lt_eq_0_error();
1298+
zend_power_base_0_exponent_lt_0_error();
12991299
}
13001300

13011301
*result = pow(base, exponent);

0 commit comments

Comments
 (0)