mirror of
https://github.com/php/php-src.git
synced 2026-04-04 06:32:49 +02:00
Due to ASLR restrictions, preloading on Windows does not work with any code that has preloading dependencies on internal classes. This effectively makes it unusable for any non-trivial codebase. Instead of pretending like preloading is going to work, only to make people realize that it really doesn't once they get beyond a dummy example, we disable support for preloading on Windows entirely. Closes GH-4999.
21 lines
632 B
PHP
21 lines
632 B
PHP
--TEST--
|
|
Preloading: Loadable class checking (2)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_loadable_classes_2.inc
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
Unreachable
|
|
--EXPECTF--
|
|
Warning: Use of undefined constant UNDEF - assumed 'UNDEF' (this will throw an Error in a future version of PHP) in Unknown on line 0
|
|
|
|
Fatal error: Class 'Foo' not found in Unknown on line 0
|
|
|
|
Fatal error: Failed to resolve initializers of class Test during preloading in Unknown on line 0
|