--TEST-- Trying to parse a file that is too large (over 4GB) --EXTENSIONS-- tidy --SKIPIF-- --CONFLICTS-- all --INI-- memory_limit="5G" --FILE-- parseFile($path)); } catch (\Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump(tidy_parse_file($path)); } catch (\Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { $tidy = new tidy($path); } catch (\Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { tidy_repair_file($path); } catch (\Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } ?> --CLEAN-- --EXPECT-- int(0) ValueError: Input string is too long ValueError: Input string is too long ValueError: Input string is too long ValueError: tidy_repair_file(): Argument #1 ($filename) Input string is too long