mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01: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
439 B
PHP
21 lines
439 B
PHP
--TEST--
|
|
Bug #78918: Class alias during preloading causes assertion failure
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_class_alias.inc
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(class_exists('A'));
|
|
var_dump(class_exists('B'));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|