History log of /PHP-8.1/ext/opcache/tests/preload_enum.phpt (Results 1 – 4 of 4)
Revision Date Author Comments
# b1b0c81e 30-Jul-2021 Nikita Popov

Don't print preload warning for non-top-level classes

Dynamically declared classes categorically do not get linked during
preloading, even if all their dependencies are known. The warnin

Don't print preload warning for non-top-level classes

Dynamically declared classes categorically do not get linked during
preloading, even if all their dependencies are known. The warning
is misleading in this case, and there isn't anything the user can
do to address it.

show more ...


# 8834cf01 27-Jul-2021 Nikita Popov

Handle missing class when evaluating CONST_ENUM_INIT

When resolving constants on a dynamically declared class during
preloading, the enum class may not be available. Fail gracefully

Handle missing class when evaluating CONST_ENUM_INIT

When resolving constants on a dynamically declared class during
preloading, the enum class may not be available. Fail gracefully
in that case.

Possibly we shouldn't be trying to evaluate constants on
non-linked classes at all?

show more ...


# b3541840 27-Jul-2021 Nikita Popov

Allocate map_ptr for mutable_data during preloading

We need to discard objects in the class constants if they happened
to be evaluated during preloading. To allow doing so, we need to

Allocate map_ptr for mutable_data during preloading

We need to discard objects in the class constants if they happened
to be evaluated during preloading. To allow doing so, we need to
use mutable_data, which will place the evaluated constants into
a separate table.

show more ...


# c1959e63 27-Jul-2021 Nikita Popov

Fix preloading of enums

We should not store constants that resolve to objects.