chregu Mon Jul 31 13:05:35 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/xsl xsltprocessor.c
Log:
return false instead of null, if it's an invalid document
http://cvs.php.net/viewvc.cgi/php-src/ext/xsl/xsltprocessor.c?r1=1.39.2.2.2.3&r2=1.39.2.2.2.4&diff_format=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.39.2.2.2.3
php-src/ext/xsl/xsltprocessor.c:1.39.2.2.2.4
--- php-src/ext/xsl/xsltprocessor.c:1.39.2.2.2.3 Mon Jul 31 12:50:42 2006
+++ php-src/ext/xsl/xsltprocessor.c Mon Jul 31 13:05:35 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: xsltprocessor.c,v 1.39.2.2.2.3 2006/07/31 12:50:42 chregu Exp $ */
+/* $Id: xsltprocessor.c,v 1.39.2.2.2.4 2006/07/31 13:05:35 chregu Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -351,7 +351,7 @@
}
if (doc == NULL) {
php_error(E_WARNING, "Invalid Document");
- RETURN_NULL();
+ RETURN_FALSE;
}
/* libxslt uses _private, so we must copy the imported
@@ -406,7 +406,7 @@
}
php_xsl_set_object(id, sheetp TSRMLS_CC);
- RETURN_TRUE;
+ RETVAL_TRUE;
}
/* }}} end xsl_xsltprocessor_import_stylesheet */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php