mirror of
https://github.com/php/php-src.git
synced 2026-04-14 11:32:11 +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.
19 lines
418 B
PHP
19 lines
418 B
PHP
--TEST--
|
|
Initializer of overwritten property should be resolved against the correct class
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_overwritten_prop_init.inc
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump((new Bar)->prop);
|
|
?>
|
|
--EXPECT--
|
|
int(42)
|