mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fix crash: handler name not length needs to be passed to php_error_docref
This commit is contained in:
parent
5169c32573
commit
9a95a98628
@ -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));
|
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) {
|
} 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...
|
// Push an empty string, so that we at least have an xslt result...
|
||||||
valuePush(ctxt, xmlXPathNewString(""));
|
valuePush(ctxt, xmlXPathNewString(""));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user