Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromphp/php-src

Commitabfd811

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
2 parentscc2a0dd +4790da5 commitabfd811

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

‎sapi/phpdbg/phpdbg_help.c‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -829,21 +829,19 @@ phpdbg_help_text_t phpdbg_help_text[] = {
829829

830830
{"run",
831831
"Enter the vm, starting execution. Execution will then continue until the next breakpoint "
832-
"or completion of the script. Add parameters you want to use as $argv"CRCR
832+
"or completion of the script. Add parameters you want to use as $argv. Add a trailing "
833+
"**< filename** for reading STDIN from a file."CRCR
833834

834835
"**Examples**"CRCR
835836

836837
" $P run"CR
837838
" $P r"CR
838839
" Will cause execution of the context, if it is set"CRCR
839-
" $P r test"CR
840-
" Will execute with $argv[1] == \"test\""CRCR
840+
" $P r test < foo.txt"CR
841+
" Will execute with $argv[1] == \"test\" and read from the foo.txt file for STDIN"CRCR
841842

842843
"Note that the execution context must be set. If not previously compiled, then the script will "
843-
"be compiled before execution."CRCR
844-
845-
"Note that attempting to run a script that is already executing will result in an \"execution "
846-
"in progress\" error."
844+
"be compiled before execution."
847845
},
848846

849847
{"set",

‎sapi/phpdbg/phpdbg_list.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) {
319319

320320
if (op_array->vars) {
321321
inti;
322-
/* un-intern these strings to preventzend_restore_strings from invalidating our string pointers too early */
322+
/* un-intern these strings to preventzend_interned_strings_restore from invalidating our string pointers too early (in phpdbg allocated memory only gets freed after module shutdown) */
323323
for (i=0;i<op_array->last_var;i++) {
324324
zend_string**s=op_array->vars+i;
325325
if (ZSTR_IS_INTERNED(*s)) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp