1
0
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:
Niels Dossche
2024-08-23 18:53:23 +02:00
parent 6c63c48a7e
commit baac01f594
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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;