]> granicus.if.org Git - php/commitdiff
Passing a zend_string * to %s is a bad idea
authorBob Weinand <bobwei9@hotmail.com>
Wed, 24 Jun 2015 13:29:26 +0000 (15:29 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Wed, 24 Jun 2015 13:29:26 +0000 (15:29 +0200)
sapi/phpdbg/phpdbg_list.c

index c96d8652f01a16478855304f4d6310ea9a245c87..d38495bf9d99ed8954639fe69cdd20b97707d537 100644 (file)
@@ -181,7 +181,7 @@ void phpdbg_list_function(const zend_function *fbc) /* {{{ */
        const zend_op_array *ops;
 
        if (fbc->type != ZEND_USER_FUNCTION) {
-               phpdbg_error("list", "type=\"internalfunction\" function=\"%s\"", "The function requested (%s) is not user defined", fbc->common.function_name);
+               phpdbg_error("list", "type=\"internalfunction\" function=\"%s\"", "The function requested (%s) is not user defined", fbc->common.function_name->val);
                return;
        }