summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2017-09-21 00:03:33 +0100
committerAndrea Faulds <ajf@ajf.me>2017-09-21 00:04:08 +0100
commitb71023e2977e44fd3bd94516eaebf77fd9907dd9 (patch)
treeb7ff26a29e4b0d11d4cb5930e58f3da02a5fb3a9 /tests
parent0c0b955d5f7b1ec19cc303035e194da58c632336 (diff)
parent418f97443aa44644bdf81b96fb726518754724f5 (diff)
downloadphp-git-b71023e2977e44fd3bd94516eaebf77fd9907dd9.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'tests')
-rw-r--r--tests/output/bug75236.phpt18
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