Skip to content

Commit a027247

Browse files
committed
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.
1 parent caefc6a commit a027247

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Zend/tests/enum/no-write-properties-cache-slot.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ var_dump(Test::A->name);
2323
?>
2424
--EXPECT--
2525
string(1) "A"
26-
Enum properties are immutable
26+
Cannot modify readonly property Test::$name
2727
string(1) "A"

Zend/zend_enum.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
#include "zend_enum_arginfo.h"
2323
#include "zend_interfaces.h"
2424

25-
#define ZEND_ENUM_PROPERTY_ERROR() \
26-
zend_throw_error(NULL, "Enum properties are immutable")
27-
2825
#define ZEND_ENUM_DISALLOW_MAGIC_METHOD(propertyName, methodName) \
2926
do { \
3027
if (ce->propertyName) { \

0 commit comments

Comments
 (0)