mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #33340 (CLI Crash when calling php:function from XSLT)
This commit is contained in:
parent
bad7aeeffb
commit
f14292df21
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
|
|||
int j;
|
||||
dom_object *domintern = (dom_object *)intern->doc;
|
||||
array_init(args[i]);
|
||||
if (obj->nodesetval->nodeNr > 0) {
|
||||
if (obj->nodesetval && obj->nodesetval->nodeNr > 0) {
|
||||
for (j = 0; j < obj->nodesetval->nodeNr; j++) {
|
||||
xmlNodePtr node = obj->nodesetval->nodeTab[j];
|
||||
zval *child;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue