Skip to content

Commit d3bf88e

Browse files
committed
Improve error handling
1 parent 9cb8bcf commit d3bf88e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

ext/opcache/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ if test "$PHP_OPCACHE" != "no"; then
147147

148148
JIT_CFLAGS="-I@ext_builddir@/jit/ir -D${IR_TARGET} -DIR_PHP"
149149
if test "$ZEND_DEBUG" = "yes"; then
150-
JIT_CFLAGS="${JIT_CFLAGS} -DIR_DEBUG -DIR_DEBUG_MESSAGES"
150+
JIT_CFLAGS="${JIT_CFLAGS} -DIR_DEBUG"
151151
fi
152152
fi
153153

ext/opcache/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (PHP_OPCACHE != "no") {
5555

5656
ADD_FLAG("CFLAGS_OPCACHE", "/I \"ext\\opcache\\jit\\ir\" /D "+ir_target+" /D IR_PHP");
5757
if (PHP_DEBUG == "yes") {
58-
ADD_FLAG("CFLAGS_OPCACHE", "/D IR_DEBUG /D IR_DEBUG_MESSAGES");
58+
ADD_FLAG("CFLAGS_OPCACHE", "/D IR_DEBUG");
5959
}
6060

6161
if (CHECK_HEADER_ADD_INCLUDE("capstone\\capstone.h", "CFLAGS_OPCACHE", PHP_OPCACHE+ ";" + PHP_PHP_BUILD + "\\include") &&

ext/opcache/jit/zend_jit_ir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ uint32_t zend_jit_duplicate_exit_point(ir_ctx *ctx, zend_jit_trace_info *t, uint
648648
uint32_t new_exit_point = t->exit_count;
649649

650650
if (new_exit_point >= ZEND_JIT_TRACE_MAX_EXITS) {
651-
ZEND_ASSERT(0 && "ZEND_JIT_TRACE_MAX_EXITS");
651+
ctx->status = -ZEND_JIT_TRACE_STOP_TOO_MANY_EXITS;
652+
return exit_point;
652653
}
653654

654655
t->exit_count++;

0 commit comments

Comments
 (0)