mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
More fixing for bug #71540
This commit is contained in:
parent
e34a7a1b08
commit
c1355152db
@ -55,6 +55,8 @@ Warning: XSLTProcessor::transformToXml(): Stack usage errror in %sbug71540.php o
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): Stack usage errror in %sbug71540.php on line %d
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): Handler name must be a string in %sbug71540.php on line %d
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): xmlXPathCompiledEval: 2 objects left on the stack. in %sbug71540.php on line %d
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): runtime error: file %s line 13 element value-of in %sbug71540.php on line %d
|
||||
|
@ -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 *) ""));
|
||||
|
Loading…
Reference in New Issue
Block a user