diff options
| author | Christian Stocker <chregu@php.net> | 2006-07-31 13:07:44 +0000 |
|---|---|---|
| committer | Christian Stocker <chregu@php.net> | 2006-07-31 13:07:44 +0000 |
| commit | 304816bf782d177b1b7020e8d1c29a4159a62cb2 (patch) | |
| tree | 2f0cc64dece85a436c3a38c019c470f58834dae9 | |
| parent | b59ad4f9385d42b131b1650458c418a5a3df002a (diff) | |
| download | php-git-304816bf782d177b1b7020e8d1c29a4159a62cb2.tar.gz | |
return false instead of null, if it's an invalid document
(MFB)
| -rw-r--r-- | ext/xsl/xsltprocessor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 1ae811b43e..15f0df6e0f 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -351,7 +351,7 @@ PHP_FUNCTION(xsl_xsltprocessor_import_stylesheet) } 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_FUNCTION(xsl_xsltprocessor_import_stylesheet) } php_xsl_set_object(id, sheetp TSRMLS_CC); - RETURN_TRUE; + RETVAL_TRUE; } /* }}} end xsl_xsltprocessor_import_stylesheet */ |
