diff options
Diffstat (limited to 'sapi/phpdbg/phpdbg_frame.c')
| -rw-r--r-- | sapi/phpdbg/phpdbg_frame.c | 17 | 
1 files changed, 9 insertions, 8 deletions
diff --git a/sapi/phpdbg/phpdbg_frame.c b/sapi/phpdbg/phpdbg_frame.c index 2065277dfe..912089ea23 100644 --- a/sapi/phpdbg/phpdbg_frame.c +++ b/sapi/phpdbg/phpdbg_frame.c @@ -2,7 +2,7 @@     +----------------------------------------------------------------------+     | PHP Version 7                                                        |     +----------------------------------------------------------------------+ -   | Copyright (c) 1997-2018 The PHP Group                                | +   | Copyright (c) The PHP Group                                          |     +----------------------------------------------------------------------+     | This source file is subject to version 3.01 of the PHP license,      |     | that is bundled with this package in the file LICENSE, and is        | @@ -171,7 +171,7 @@ void phpdbg_switch_frame(int frame) /* {{{ */  static void phpdbg_dump_prototype(zval *tmp) /* {{{ */  { -	zval *funcname, *class, class_zv, *type, *args, *argstmp; +	zval *funcname, *class, class_zv, *args, *argstmp;  	funcname = zend_hash_str_find(Z_ARRVAL_P(tmp), ZEND_STRL("function")); @@ -183,21 +183,22 @@ static void phpdbg_dump_prototype(zval *tmp) /* {{{ */  	}  	if (class) { -		type = zend_hash_str_find(Z_ARRVAL_P(tmp), ZEND_STRL("type")); +		zval *type = zend_hash_str_find(Z_ARRVAL_P(tmp), ZEND_STRL("type")); + +		phpdbg_xml(" symbol=\"%s%s%s\"", Z_STRVAL_P(class), Z_STRVAL_P(type), Z_STRVAL_P(funcname)); +		phpdbg_out("%s%s%s(", Z_STRVAL_P(class), Z_STRVAL_P(type), Z_STRVAL_P(funcname)); +	} else { +		phpdbg_xml(" symbol=\"%s\"", Z_STRVAL_P(funcname)); +		phpdbg_out("%s(", Z_STRVAL_P(funcname));  	}  	args = zend_hash_str_find(Z_ARRVAL_P(tmp), ZEND_STRL("args")); - -	phpdbg_xml(" symbol=\"%s%s%s\"", class ? Z_STRVAL_P(class) : "", class ? Z_STRVAL_P(type) : "", Z_STRVAL_P(funcname)); -  	if (args) {  		phpdbg_xml(">");  	} else {  		phpdbg_xml(" />");  	} -	phpdbg_out("%s%s%s(", class ? Z_STRVAL_P(class) : "", class ? Z_STRVAL_P(type) : "", Z_STRVAL_P(funcname)); -  	if (args) {  		const zend_function *func = NULL;  		const zend_arg_info *arginfo = NULL;  | 
