summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/ssa_bug_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/ssa_bug_001.phpt')
-rw-r--r--ext/opcache/tests/ssa_bug_001.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/opcache/tests/ssa_bug_001.phpt b/ext/opcache/tests/ssa_bug_001.phpt
new file mode 100644
index 0000000000..56757f56a4
--- /dev/null
+++ b/ext/opcache/tests/ssa_bug_001.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SSA constrution for CFG with unreachable basic blocks
+--FILE--
+<?php
+class X {
+ public function __get($n) {
+ if ($n === 'type') {
+ trigger_error('Deprecated type property called; use instanceof', E_USER_NOTICE);
+ switch (get_class($this)) {
+ case 'HTMLPurifier_Token_Start': return 'start';
+ default: return null;
+ }
+ }
+ }
+}
+?>
+OK
+--EXPECT--
+OK