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.
This commit is contained in:
Nikita Popov 2021-08-13 17:01:16 +02:00
parent caefc6a507
commit a027247289
2 changed files with 1 additions and 4 deletions

View file

@ -23,5 +23,5 @@ var_dump(Test::A->name);
?> ?>
--EXPECT-- --EXPECT--
string(1) "A" string(1) "A"
Enum properties are immutable Cannot modify readonly property Test::$name
string(1) "A" string(1) "A"

View file

@ -22,9 +22,6 @@
#include "zend_enum_arginfo.h" #include "zend_enum_arginfo.h"
#include "zend_interfaces.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) \ #define ZEND_ENUM_DISALLOW_MAGIC_METHOD(propertyName, methodName) \
do { \ do { \
if (ce->propertyName) { \ if (ce->propertyName) { \