mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
25 lines
435 B
PHP
25 lines
435 B
PHP
--TEST--
|
|
Preloading: Loadable class checking (3)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_loadable_classes_3.inc
|
|
--EXTENSIONS--
|
|
opcache
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
}
|
|
var_dump(new Test);
|
|
?>
|
|
--EXPECT--
|
|
object(Test)#1 (0) {
|
|
["prop":protected]=>
|
|
uninitialized(Foo)
|
|
}
|