rrichards Tue Jun 14 15:39:53 2005 EDT
Modified files:
/php-src/ext/xsl xsltprocessor.c
Log:
Fixed bug #33340 (CLI Crash when calling php:function from XSLT)
http://cvs.php.net/diff.php/php-src/ext/xsl/xsltprocessor.c?r1=1.37&r2=1.38&ty=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.37
php-src/ext/xsl/xsltprocessor.c:1.38
--- php-src/ext/xsl/xsltprocessor.c:1.37 Wed Apr 6 08:26:29 2005
+++ php-src/ext/xsl/xsltprocessor.c Tue Jun 14 15:39:52 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: xsltprocessor.c,v 1.37 2005/04/06 12:26:29 chregu Exp $ */
+/* $Id: xsltprocessor.c,v 1.38 2005/06/14 19:39:52 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -200,7 +200,7 @@
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php