From c69945961fb18c9270b5e1665f6664ba5ab1c6ed Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 14 Jan 2004 12:19:17 +0000 Subject: [PATCH] fix crash when throwing an exception --- ext/tidy/tidy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 61ba2312dd..fa8d2fe16f 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -897,6 +897,7 @@ PHP_FUNCTION(tidy_parse_file) if (!(contents = php_tidy_file_to_mem(inputfile, use_include_path TSRMLS_CC))) { TIDY_THROW("Cannot Load '%s' into memory %s", inputfile, (use_include_path) ? "(Using include path)" : ""); + return; } TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options); -- 2.40.0