xref: /PHP-8.3/ext/opcache/tests/gh13433/gh13433.phpt (revision 55e61769)
1--TEST--
2GH-13433 (Segmentation Fault in zend_class_init_statics when using opcache.preload)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=0
7opcache.preload={PWD}/preload.inc
8--EXTENSIONS--
9opcache
10--SKIPIF--
11<?php
12if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
13?>
14--FILE--
15<?php
16$instance = new TheClass;
17var_dump($instance);
18var_dump($instance->test());
19?>
20OK
21--EXPECT--
22object(TheClass)#1 (0) {
23}
24array(1) {
25  [0]=>
26  string(9) "non-empty"
27}
28OK
29