diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-07 11:42:21 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-07 11:42:21 +0200 |
commit | f5dbebd82e642b1d1af462b486fc392ecff2c67a (patch) | |
tree | 59c9eba8521db0a339f6f6479777b5ee893a2e92 /sapi/phpdbg/phpdbg_prompt.c | |
parent | 85b5dc4711f6ce8b979ed60e3b60cf93225be32a (diff) | |
download | php-git-f5dbebd82e642b1d1af462b486fc392ecff2c67a.tar.gz |
Accept zend_string instead of zval in zend_compile_string
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 9f8fdd820c..39ef7d8768 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -519,12 +519,7 @@ exec_code: } /* }}} */ int phpdbg_compile_stdin(zend_string *code) { - zval zv; - - ZVAL_STR(&zv, code); - - PHPDBG_G(ops) = zend_compile_string(&zv, "Standard input code"); - + PHPDBG_G(ops) = zend_compile_string(code, "Standard input code"); zend_string_release(code); if (EG(exception)) { |