summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-08-13 11:23:06 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-08-13 11:23:06 +0200
commit76fecb339f93b0948b0a792c7a685dda7eb544eb (patch)
tree31a70466ec3c29dc7b12d816ea7a857ff8f212c7
parentb01824e596dd11d075d1f2c9af364d2fdabc4d17 (diff)
parenta33361a37c0b3bfbeb821e33b254375459a9d2bc (diff)
downloadphp-git-76fecb339f93b0948b0a792c7a685dda7eb544eb.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
-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"