com php-src: auto compile when execution context set: phpdbg.c
| From: | Bob Weinand | Date: | Sat, 19 Apr 2014 20:08:54 +0000 |
| Subject: | com php-src: auto compile when execution context set: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-76977@lists.php.net to get a copy of this message | ||
Commit: 11c707d83657f2fd8347496d0959b27bdd454836
Author: krakjoe <joe.watkins@live.co.uk> Sat, 19 Apr 2014 21:08:54 +0100
Parents: fdd9bc20507f04bdcdeb963a26a9334409885c5c
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=11c707d83657f2fd8347496d0959b27bdd454836
Log:
auto compile when execution context set
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 213906a..2c5b796 100644
--- 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 {