diff options
author | Stanislav Malyshev <stas@php.net> | 2016-02-15 01:53:02 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-02-15 01:53:02 -0800 |
commit | c1355152dbdf131ebda1a21e7c66913b4ed9037c (patch) | |
tree | 62b8b10df9ea154570a641d449cf7ea18b582cfe /ext/xsl/xsltprocessor.c | |
parent | e34a7a1b08342489e5ee1a83b00d98c4d9084c83 (diff) | |
download | php-git-c1355152dbdf131ebda1a21e7c66913b4ed9037c.tar.gz |
More fixing for bug #71540
Diffstat (limited to 'ext/xsl/xsltprocessor.c')
-rw-r--r-- | ext/xsl/xsltprocessor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index ec3042311d..600c7cddb0 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -304,7 +304,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t obj = valuePop(ctxt); - if (obj->stringval == NULL) { + if (obj == NULL || obj->stringval == NULL) { php_error_docref(NULL, E_WARNING, "Handler name must be a string"); xmlXPathFreeObject(obj); valuePush(ctxt, xmlXPathNewString((const xmlChar *) "")); |