summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug77191.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/bug77191.phpt')
-rw-r--r--ext/opcache/tests/bug77191.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug77191.phpt b/ext/opcache/tests/bug77191.phpt
new file mode 100644
index 0000000000..ca04b4aadd
--- /dev/null
+++ b/ext/opcache/tests/bug77191.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #77191: Assertion failure in dce_live_ranges() when silencing is used
+--FILE--
+<?php
+function test($x) {
+ switch (@$x['y']) {
+ case 1: return 'a';
+ case 2: return 'b';
+ case 3: return 'c';
+ case 4: return 'd';
+ }
+ return 'e';
+}
+var_dump(test([]));
+?>
+--EXPECT--
+string(1) "e"