summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug78175_2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/bug78175_2.phpt')
-rw-r--r--ext/opcache/tests/bug78175_2.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug78175_2.phpt b/ext/opcache/tests/bug78175_2.phpt
new file mode 100644
index 0000000000..1d736f6e10
--- /dev/null
+++ b/ext/opcache/tests/bug78175_2.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Bug #78175.2 (Preloading segfaults at preload time and at runtime)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.optimization_level=-1
+opcache.preload={PWD}/preload_bug78175_2.inc
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+var_dump(get_class(Loader::getLoader()));
+var_dump(Loader::getCounter());
+?>
+OK
+--EXPECT--
+string(6) "Loader"
+int(0)
+OK