]> granicus.if.org Git - php/commitdiff
Fix crash: handler name not length needs to be passed to php_error_docref
authorRob Richards <rrichards@php.net>
Fri, 2 Sep 2005 15:38:22 +0000 (15:38 +0000)
committerRob Richards <rrichards@php.net>
Fri, 2 Sep 2005 15:38:22 +0000 (15:38 +0000)
ext/xsl/xsltprocessor.c

index 342709321930e81632060d9afeab19d58296d7e4..a8af3cf6cf69c04c0c8427e313967298d247a819 100644 (file)
@@ -268,7 +268,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call handler %R()", Z_TYPE(callable), Z_UNIVAL(callable));
                
        } else if ( intern->registerPhpFunctions == 2 && zend_u_hash_exists(intern->registered_phpfunctions, Z_TYPE(callable), Z_UNIVAL(callable), Z_UNILEN(callable) + 1) == 0) { 
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not allowed to call handler '%R()'.", Z_TYPE(callable), Z_UNILEN(callable));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not allowed to call handler '%R()'.", Z_TYPE(callable), Z_UNIVAL(callable));
                // Push an empty string, so that we at least have an xslt result...
                valuePush(ctxt, xmlXPathNewString(""));
        } else {