From: krakjoe Date: Tue, 12 Nov 2013 02:50:24 +0000 (+0000) Subject: ... X-Git-Tag: php-5.6.0alpha1~110^2~454 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9c1c872f6fcf99b0ba8e3f26a21814e475bd788;p=php ... --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 5fd0712522..7d8ed357d7 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -513,13 +513,13 @@ static PHPDBG_COMMAND(list) /* {{{ */ phpdbg_list_file(filename, count, offset TSRMLS_CC); } else { zend_function* fbc; - + if (!EG(function_table)) { printf("[No function table loaded]\n"); return SUCCESS; } - if (zend_hash_find(EG(function_table), expr, strlen(expr)+1, + if (zend_hash_find(EG(function_table), expr, expr_len, (void**)&fbc) == SUCCESS) { phpdbg_list_function(fbc TSRMLS_CC); }