]> granicus.if.org Git - php/commitdiff
compile fix from Timm
authorWez Furlong <wez@php.net>
Sun, 26 Sep 2004 13:52:09 +0000 (13:52 +0000)
committerWez Furlong <wez@php.net>
Sun, 26 Sep 2004 13:52:09 +0000 (13:52 +0000)
ext/readline/readline.c

index 3e3e1a961dd6278928590c007ffa40be05ca417b..0af0c42b294ca1c386df128c780151a1f692c880 100644 (file)
@@ -435,12 +435,12 @@ static char **_readline_completion_cb(const char *text, int start, int end)
 PHP_FUNCTION(readline_completion_function)
 {
        zval *arg = NULL;
+       char *name = NULL;
 
        if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &arg)) {
                RETURN_FALSE;
        }
 
-       char *name = NULL;
        if (!zend_is_callable(arg, 0, &name)) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s is not callable", name);
                RETURN_FALSE;