History log of /PHP-8.1/Zend/tests/enum/no-write-properties-cache-slot.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# a0272472 13-Aug-2021 Nikita Popov

Fix message in test

Looks like I did not "git add" the message update.

Also drop the now dead ZEND_ENUM_PROPERTY_ERROR() macro while
here.


# caefc6a5 13-Aug-2021 Nikita Popov

Don't use custom object handlers for enum properties

Instead mark name/value as readonly and the class as
NO_DYNAMIC_PROPERTIES. This gives us the desired limitations
using native fe

Don't use custom object handlers for enum properties

Instead mark name/value as readonly and the class as
NO_DYNAMIC_PROPERTIES. This gives us the desired limitations
using native features.

In fact, this also fixes a bug where opcache cache slot merging
might result in a write to the name/value properties being
allowed. The readonly implementation handles this case correctly.

show more ...