diff options
author | Andrea Faulds <ajf@ajf.me> | 2017-09-21 00:04:32 +0100 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2017-09-21 00:04:56 +0100 |
commit | 7418f6814fd9f8d2066f1197ce8d4866811bbd0f (patch) | |
tree | 5aa6a2fb9aece0c5a28d3fda0c28266f36985615 /tests | |
parent | c7a017749176e31fd19980222b474a87861b602b (diff) | |
parent | b71023e2977e44fd3bd94516eaebf77fd9907dd9 (diff) | |
download | php-git-7418f6814fd9f8d2066f1197ce8d4866811bbd0f.tar.gz |
Merge branch 'PHP-7.1' into PHP-7.2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/output/bug75236.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/output/bug75236.phpt b/tests/output/bug75236.phpt new file mode 100644 index 0000000000..f6c7a51aa3 --- /dev/null +++ b/tests/output/bug75236.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #75236: infinite loop when printing an error-message +--FILE-- +<?php + + ini_set('html_errors', true); + ini_set('default_charset', 'ISO-8859-2'); + + printf ("before getfilecontent\n"); + file_get_contents ('no/suchfile'); + printf ("after getfilecontent\n"); + +?> +--EXPECTF-- +before getfilecontent +<br /> +<b>Warning</b>: file_get_contents(no/suchfile): failed to open stream: No such file or directory in <b>%s</b> on line <b>7</b><br /> +after getfilecontent |