Skip to content

Commit 5827783

Browse files
committed
Return 1 instead of error in zend_compile.c
1 parent d52901b commit 5827783

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
@@ -7712,7 +7712,7 @@ static zend_string *zend_begin_func_decl(znode *result, zend_op_array *op_array,
77127712
zend_string *separator = zend_empty_string;
77137713
zend_string *function = filename;
77147714
char *parens = "";
7715-
7715+
77167716
if (CG(active_op_array) && CG(active_op_array)->function_name) {
77177717
if (CG(active_op_array)->fn_flags & ZEND_ACC_CLOSURE) {
77187718
/* If the parent function is a closure, don't redundantly
@@ -8980,7 +8980,7 @@ ZEND_API bool zend_binary_op_produces_error(uint32_t opcode, const zval *op1, co
89808980
}
89818981
if ((opcode == ZEND_POW) && zval_get_long(op1) == 0 && zval_get_long(op2) < 0) {
89828982
/* 0 ** (<=0) throws a division by zero error. */
8983-
zend_error(E_DEPRECATED, "Power of base 0 and negative exponent is deprecated");
8983+
return 1;
89848984
}
89858985
if ((opcode == ZEND_SL || opcode == ZEND_SR) && zval_get_long(op2) < 0) {
89868986
/* Shift by negative number throws an error. */

0 commit comments

Comments
 (0)