Skip to content

Commit f66905d

Browse files
committed
Fix weird asm instruction order with gcc by marking as volatile in phpdbg
1 parent 79e6dba commit f66905d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/phpdbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ int main(int argc, char **argv) /* {{{ */
11691169
char *php_optarg;
11701170
int php_optind, opt, show_banner = 1;
11711171
long cleaning = -1;
1172-
zend_bool quit_immediately = 0;
1172+
volatile zend_bool quit_immediately = 0; /* somehow some gcc release builds will play a bit around with order in combination with setjmp..., hence volatile */
11731173
zend_bool remote = 0;
11741174
zend_phpdbg_globals *settings = NULL;
11751175
char *bp_tmp = NULL;

0 commit comments

Comments
 (0)