From a027247289b3c68aa062d365db1b1997a75242a4 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 13 Aug 2021 17:01:16 +0200 Subject: [PATCH] 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. --- Zend/tests/enum/no-write-properties-cache-slot.phpt | 2 +- Zend/zend_enum.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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) { \