History log of /PHP-8.1/Zend/tests/class_constant_inheritance_mutable_data.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# 279d6a4f 18-Nov-2021 Nikita Popov

Skip test under preloading

In this case we produce additional warnings when preloading
evaluates constants. Possibly we shouldn't be evaluating expressions
with side-effects during p

Skip test under preloading

In this case we produce additional warnings when preloading
evaluates constants. Possibly we shouldn't be evaluating expressions
with side-effects during preloading, but for now just skip this
test.

show more ...


# 44e5d253 16-Nov-2021 Nikita Popov

Fix inheritance of class constants if mutable data used

Class constants from parents should always be directly reused,
rather than re-evaluated as a separate copy. Previously this used

Fix inheritance of class constants if mutable data used

Class constants from parents should always be directly reused,
rather than re-evaluated as a separate copy. Previously this used
to happen automatically, as we'd just inherit the class constant
entry from the parent class. With mutable data there may now be
a separate copy of the constant, so we need to use that copy
when updating constants. Otherwise we may evaluate the same
constant multiple times.

Closes GH-7658.

show more ...