com php-src: update phpdbg with stdin code change: sapi/phpdbg/ phpdbg_prompt.c
| From: | Joe Watkins | Date: | Sat, 12 Nov 2016 17:30:16 +0000 |
| Subject: | com php-src: update phpdbg with stdin code change: sapi/phpdbg/ phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95719@lists.php.net to get a copy of this message | ||
Commit: 6c0e1ca4fa31a860a363abecd6376d99edff8833
Author: Joe Watkins <krakjoe@php.net> Sat, 12 Nov 2016 17:30:16 +0000
Parents: 3ed8b7a87b5383f9ba99a0bbcea6e9fe7a070946
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6c0e1ca4fa31a860a363abecd6376d99edff8833
Log:
update phpdbg with stdin code change
Changed paths:
M sapi/phpdbg/phpdbg_prompt.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
index 36d947b..1d95afc 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -528,7 +528,7 @@ int phpdbg_compile_stdin(zend_string *code) {
ZVAL_STR(&zv, code);
- PHPDBG_G(ops) = zend_compile_string(&zv, "-");
+ PHPDBG_G(ops) = zend_compile_string(&zv, "Standard input code");
zend_string_release(code);
@@ -539,7 +539,7 @@ int phpdbg_compile_stdin(zend_string *code) {
if (PHPDBG_G(exec)) {
efree(PHPDBG_G(exec));
}
- PHPDBG_G(exec) = estrdup("-");
+ PHPDBG_G(exec) = estrdup("Standard input code");
PHPDBG_G(exec_len) = 1;
{ /* remove leading ?> from source */
int i;
@@ -549,11 +549,11 @@ int phpdbg_compile_stdin(zend_string *code) {
PHPDBG_G(file_sources).pDestructor = NULL;
zend_hash_del(&PHPDBG_G(file_sources), source_path);
PHPDBG_G(file_sources).pDestructor = dtor;
- zend_hash_str_update_ptr(&PHPDBG_G(file_sources), "-", 1, data);
+ zend_hash_str_update_ptr(&PHPDBG_G(file_sources), "Standard input code", 1, data);
zend_string_release(source_path);
efree(data->filename);
- data->filename = estrdup("-");
+ data->filename = estrdup("Standard input code");
for (i = 1; i <= data->lines; i++) {
data->line[i] -= 2;