]> granicus.if.org Git - php/commitdiff
return false instead of null, if it's an invalid document
authorChristian Stocker <chregu@php.net>
Mon, 31 Jul 2006 13:07:44 +0000 (13:07 +0000)
committerChristian Stocker <chregu@php.net>
Mon, 31 Jul 2006 13:07:44 +0000 (13:07 +0000)
(MFB)

ext/xsl/xsltprocessor.c

index 1ae811b43ecaf961f818f22895226bb28ad00c32..15f0df6e0f2cac75690552328280f283ac369231 100644 (file)
@@ -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 */