]> granicus.if.org Git - php/commitdiff
auto compile when execution context set
authorkrakjoe <joe.watkins@live.co.uk>
Sat, 19 Apr 2014 20:08:54 +0000 (21:08 +0100)
committerkrakjoe <joe.watkins@live.co.uk>
Sat, 19 Apr 2014 20:08:54 +0000 (21:08 +0100)
phpdbg.c

index 213906a977b21adac447cfd0a1b517136a1cc4df..2c5b7960d5efe06312c508dd3106b0ed39dc400d 100644 (file)
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -929,7 +929,6 @@ phpdbg_main:
        step = 0;
        sapi_name = NULL;
 
-
        while ((opt = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) {
                switch (opt) {
                        case 'r':
@@ -1255,6 +1254,10 @@ phpdbg_main:
                        phpdbg_welcome((cleaning > 0) TSRMLS_CC);
                }
 
+               if (PHPDBG_G(exec)) {
+                       PHPDBG_COMMAND_HANDLER(compile)(NULL TSRMLS_CC);
+               }
+
                /* initialize from file */
                PHPDBG_G(flags) |= PHPDBG_IS_INITIALIZING;
                zend_try {