diff --git a/Zend/tests/enum/no-write-properties-cache-slot.phpt b/Zend/tests/enum/no-write-properties-cache-slot.phpt index cd23e452ed6..d59268b6912 100644 --- a/Zend/tests/enum/no-write-properties-cache-slot.phpt +++ b/Zend/tests/enum/no-write-properties-cache-slot.phpt @@ -23,5 +23,5 @@ var_dump(Test::A->name); ?> --EXPECT-- string(1) "A" -Enum properties are immutable +Cannot modify readonly property Test::$name string(1) "A" diff --git a/Zend/zend_enum.c b/Zend/zend_enum.c index 94a91233194..76ec27b5a6b 100644 --- a/Zend/zend_enum.c +++ b/Zend/zend_enum.c @@ -22,9 +22,6 @@ #include "zend_enum_arginfo.h" #include "zend_interfaces.h" -#define ZEND_ENUM_PROPERTY_ERROR() \ - zend_throw_error(NULL, "Enum properties are immutable") - #define ZEND_ENUM_DISALLOW_MAGIC_METHOD(propertyName, methodName) \ do { \ if (ce->propertyName) { \