summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/preload.inc')
-rw-r--r--ext/opcache/tests/preload.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/ext/opcache/tests/preload.inc b/ext/opcache/tests/preload.inc
new file mode 100644
index 0000000000..af20c4947f
--- /dev/null
+++ b/ext/opcache/tests/preload.inc
@@ -0,0 +1,39 @@
+<?php
+function f1() {
+}
+
+if (isset($rt)) {
+ function f2() {
+ }
+}
+
+interface a {
+ function foo();
+ function bar();
+}
+interface b {
+ function foo();
+}
+
+abstract class c {
+ function bar() { }
+}
+
+class x extends c implements a, b {
+ function foo() { }
+}
+
+trait T1 {
+ static function foo() {
+ var_dump(__METHOD__);
+ }
+}
+trait T2 {
+ use T1;
+ static function bar() {
+ var_dump(__METHOD__);
+ }
+}
+class Y {
+ use T2;
+}