mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
caefc6a507
commit
a027247289
2 changed files with 1 additions and 4 deletions
|
@ -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"
|
||||||
|
|
|
@ -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) { \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue