mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Merge remote-tracking branch 'origin/PHP-7.0' into PHP-7.1
This commit is contained in:
commit
457e686262
@ -2062,6 +2062,12 @@ phpdbg_out:
|
||||
php_request_shutdown(NULL);
|
||||
} zend_end_try();
|
||||
|
||||
if (PHPDBG_G(exec) && !memcmp("-", PHPDBG_G(exec), 2)) { /* i.e. execution context has been read from stdin - back it up */
|
||||
phpdbg_file_source *data = zend_hash_str_find_ptr(&PHPDBG_G(file_sources), PHPDBG_G(exec), PHPDBG_G(exec_len));
|
||||
backup_phpdbg_compile = zend_string_alloc(data->len + 2, 1);
|
||||
sprintf(ZSTR_VAL(backup_phpdbg_compile), "?>%.*s", (int) data->len, data->buf);
|
||||
}
|
||||
|
||||
/* backup globals when cleaning */
|
||||
if ((cleaning > 0 || remote) && !quit_immediately) {
|
||||
settings = calloc(1, sizeof(zend_phpdbg_globals));
|
||||
@ -2114,12 +2120,6 @@ phpdbg_out:
|
||||
wrapper->wops->stream_opener = PHPDBG_G(orig_url_wrap_php);
|
||||
}
|
||||
|
||||
if (PHPDBG_G(exec) && !memcmp("-", PHPDBG_G(exec), 2)) { /* i.e. execution context has been read from stdin - back it up */
|
||||
phpdbg_file_source *data = zend_hash_str_find_ptr(&PHPDBG_G(file_sources), PHPDBG_G(exec), PHPDBG_G(exec_len));
|
||||
backup_phpdbg_compile = zend_string_alloc(data->len + 2, 1);
|
||||
sprintf(ZSTR_VAL(backup_phpdbg_compile), "?>%.*s", (int) data->len, data->buf);
|
||||
}
|
||||
|
||||
zend_try {
|
||||
php_module_shutdown();
|
||||
} zend_end_try();
|
||||
|
3
sapi/phpdbg/tests/include.inc
Normal file
3
sapi/phpdbg/tests/include.inc
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
echo 1;
|
Loading…
Reference in New Issue
Block a user