From: Ilia Alshanetsky Date: Sun, 26 Sep 2004 19:24:20 +0000 (+0000) Subject: MFH: X-Git-Tag: php-5.0.3RC1~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f858b30f4ea4f32cbfa4d20d9589822312f9c2bb;p=php MFH: Return FALSE when file cannot be found. Specify full paths to the files used for the test. --- diff --git a/ext/tidy/tests/016.phpt b/ext/tidy/tests/016.phpt index 660b85e337..f4f0752601 100644 --- a/ext/tidy/tests/016.phpt +++ b/ext/tidy/tests/016.phpt @@ -4,7 +4,8 @@ Passing configuration file through tidy_parse_file() --FILE-- diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index a64d7c6444..7a87300a7e 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -1088,7 +1088,7 @@ PHP_FUNCTION(tidy_parse_file) if (!(contents = php_tidy_file_to_mem(inputfile, use_include_path TSRMLS_CC))) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot Load '%s' into memory %s", inputfile, (use_include_path) ? "(Using include path)" : ""); - return; + RETURN_FALSE; } TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options);