From: Christian Stocker Date: Mon, 31 Jul 2006 13:05:35 +0000 (+0000) Subject: return false instead of null, if it's an invalid document X-Git-Tag: php-5.2.0RC2~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88dfe8cfd9c5bd702a38cef3704e780c7f6b793f;p=php return false instead of null, if it's an invalid document --- diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 19f53407ae..90c4995abb 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 */