Skip to content

Commit a61998d

Browse files
committed
Return 1 instead of error in zend_compile.c
1 parent b10a2b8 commit a61998d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7714,7 +7714,7 @@ static zend_string *zend_begin_func_decl(znode *result, zend_op_array *op_array,
77147714
zend_string *separator = zend_empty_string;
77157715
zend_string *function = filename;
77167716
char *parens = "";
7717-
7717+
77187718
if (CG(active_op_array) && CG(active_op_array)->function_name) {
77197719
if (CG(active_op_array)->fn_flags & ZEND_ACC_CLOSURE) {
77207720
/* If the parent function is a closure, don't redundantly
@@ -8982,7 +8982,7 @@ ZEND_API bool zend_binary_op_produces_error(uint32_t opcode, const zval *op1, co
89828982
}
89838983
if ((opcode == ZEND_POW) && zval_get_long(op1) == 0 && zval_get_long(op2) < 0) {
89848984
/* 0 ** (<=0) throws a division by zero error. */
8985-
zend_error(E_DEPRECATED, "Power of base 0 and negative exponent is deprecated");
8985+
return 1;
89868986
}
89878987
if ((opcode == ZEND_SL || opcode == ZEND_SR) && zval_get_long(op2) < 0) {
89888988
/* Shift by negative number throws an error. */

0 commit comments

Comments
 (0)