Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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/ir‎

‎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)

AltStyle によって変換されたページ (->オリジナル) /