]> granicus.if.org Git - php/commitdiff
use already exported symbol
authorAnatol Belski <ab@php.net>
Thu, 13 Oct 2016 07:55:37 +0000 (09:55 +0200)
committerAnatol Belski <ab@php.net>
Fri, 14 Oct 2016 00:01:22 +0000 (02:01 +0200)
(cherry picked from commit ce3e792c2c4c251fd5963a36af5ad4a9dd875085)

sapi/phpdbg/phpdbg_prompt.c

index c6115e7d00445a77d46fc41e6b28f64b61bdb3f3..35ee4332cd85edccd9c0af9c87ed327ea6d86947 100644 (file)
@@ -543,7 +543,7 @@ int phpdbg_compile_stdin(zend_string *code) {
        PHPDBG_G(exec_len) = 1;
        { /* remove leading ?> from source */
                int i;
-               zend_string *source_path = zend_strpprintf(0, "-%c%p", 0, PHPDBG_G(ops)->opcodes);
+               zend_string *source_path = strpprintf(0, "-%c%p", 0, PHPDBG_G(ops)->opcodes);
                phpdbg_file_source *data = zend_hash_find_ptr(&PHPDBG_G(file_sources), source_path);
                dtor_func_t dtor = PHPDBG_G(file_sources).pDestructor;
                PHPDBG_G(file_sources).pDestructor = NULL;