Skip to content

Commit 891de3c

Browse files
author
renyongquan
committed
make dotrace option take effects on other sapis include cli
1 parent a20f7e0 commit 891de3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpext/phptrace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ void phptrace_execute_core(zend_execute_data *ex, phptrace_execute_data *px)
474474

475475
snprintf(filename, sizeof(filename), "%s/%s.%d", PHPTRACE_G(logdir),"phptrace.log", ctx->pid);
476476

477-
if(ctrl[ctx->pid] == 0 && !(ctx->cli && PHPTRACE_G(dotrace))){
477+
if(ctrl[ctx->pid] == 0 && !PHPTRACE_G(dotrace)){
478478
/*unmap tracelog if phptrace was shutdown*/
479479
if(ctx->tracelog.shmaddr){
480480
phptrace_reset_tracelog(ctx);

0 commit comments

Comments
 (0)