diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-25 15:06:53 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-25 15:07:38 +0200 |
commit | 049467d365bd090a507f4cf26ee6907a59833887 (patch) | |
tree | c3df4e4615e0260284e894e93636624d02702553 /ext/xsl/xsltprocessor.c | |
parent | 5c37715dfdcea7b7d34d1ceaef71c93d925c6db5 (diff) | |
download | php-git-049467d365bd090a507f4cf26ee6907a59833887.tar.gz |
Avoid warning on exception in xsl ext
Diffstat (limited to 'ext/xsl/xsltprocessor.c')
-rw-r--r-- | ext/xsl/xsltprocessor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 6693ac4021..968ed2f3d7 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -248,7 +248,9 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t fci.no_separation = 0; /*fci.function_handler_cache = &function_ptr;*/ if (!zend_make_callable(&handler, &callable)) { - php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", ZSTR_VAL(callable)); + if (!EG(exception)) { + php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", ZSTR_VAL(callable)); + } valuePush(ctxt, xmlXPathNewString((const xmlChar *) "")); } else if ( intern->registerPhpFunctions == 2 && zend_hash_exists(intern->registered_phpfunctions, callable) == 0) { php_error_docref(NULL, E_WARNING, "Not allowed to call handler '%s()'", ZSTR_VAL(callable)); |