summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_static_var_inheritance.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/preload_static_var_inheritance.phpt')
-rw-r--r--ext/opcache/tests/preload_static_var_inheritance.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/opcache/tests/preload_static_var_inheritance.phpt b/ext/opcache/tests/preload_static_var_inheritance.phpt
new file mode 100644
index 0000000000..dd5e4308a9
--- /dev/null
+++ b/ext/opcache/tests/preload_static_var_inheritance.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #79548: Preloading segfault with inherited method using static variable
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.optimization_level=-1
+opcache.preload={PWD}/preload_static_var_inheritance.inc
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
+?>
+--FILE--
+<?php
+var_dump((new B)->test());
+?>
+--EXPECT--
+NULL