summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug72762.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/bug72762.phpt')
-rw-r--r--ext/opcache/tests/bug72762.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug72762.phpt b/ext/opcache/tests/bug72762.phpt
new file mode 100644
index 0000000000..8ce98bf438
--- /dev/null
+++ b/ext/opcache/tests/bug72762.phpt
@@ -0,0 +1,23 @@
+--TEST--
+Bug #72762: Infinite loop while parsing a file with opcache enabled
+--FILE--
+<?php
+
+class foo
+{
+ function bar()
+ {
+ $b = array();
+
+ foreach ($a as $a) {
+ foreach ($b as $k => $v) {
+ }
+ $b[$k] = $v;
+ }
+ }
+}
+
+?>
+===DONE===
+--EXPECT--
+===DONE===