]> granicus.if.org Git - php/commitdiff
Fix weird asm instruction order with gcc by marking as volatile in phpdbg
authorBob Weinand <bobwei9@hotmail.com>
Mon, 13 Jul 2015 12:11:39 +0000 (14:11 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 13 Jul 2015 12:12:53 +0000 (14:12 +0200)
sapi/phpdbg/phpdbg.c

index 31dab3f274830972ad3d9e11a1d1d9b14156a2a6..85a085b26ebcddcf5e89bd11033dded643c4314d 100644 (file)
@@ -1169,7 +1169,7 @@ int main(int argc, char **argv) /* {{{ */
        char *php_optarg;
        int php_optind, opt, show_banner = 1;
        long cleaning = -1;
-       zend_bool quit_immediately = 0;
+       volatile zend_bool quit_immediately = 0; /* somehow some gcc release builds will play a bit around with order in combination with setjmp..., hence volatile */
        zend_bool remote = 0;
        zend_phpdbg_globals *settings = NULL;
        char *bp_tmp = NULL;