History log of /PHP-8.1/ext/opcache/tests/preload_enum.inc (Results 1 – 4 of 4)
Revision Date Author Comments
# 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 ...


# 8675380b 27-Jul-2021 Nikita Popov

Increment refcounts in mutable data copies

For mutable_data on preloaded classes, there may be refcounted
values in the constants/properties table.


# 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.