mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Improve virtual property error message
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
This commit is contained in:
@@ -54,7 +54,7 @@ object(Test)#2 (1) {
|
||||
Test::$prop3::get
|
||||
Test::$prop3::set
|
||||
|
||||
Warning: unserialize(): Cannot unserialize value for hooked property Test::$prop3 in %s on line %d
|
||||
Warning: unserialize(): Cannot unserialize value for virtual property Test::$prop3 in %s on line %d
|
||||
|
||||
Warning: unserialize(): Error at offset 26 of 32 bytes in %s on line %d
|
||||
bool(false)
|
||||
|
||||
@@ -561,7 +561,7 @@ static int is_property_visibility_changed(zend_class_entry *ce, zval *key)
|
||||
return 1;
|
||||
} else {
|
||||
php_error_docref(NULL, E_WARNING,
|
||||
"Cannot unserialize value for hooked property %s::$%s",
|
||||
"Cannot unserialize value for virtual property %s::$%s",
|
||||
ZSTR_VAL(existing_propinfo->ce->name), Z_STRVAL_P(key));
|
||||
zval_ptr_dtor_str(key);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user