Skip to content

Commit fd0d738

Browse files
nielsdosiluuu1994
andcommitted
Improve virtual property error message
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
1 parent 6e61bc4 commit fd0d738

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/tests/property_hooks/unserialize.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ object(Test)#2 (1) {
5454
Test::$prop3::get
5555
Test::$prop3::set
5656

57-
Warning: unserialize(): Cannot unserialize value for hooked property Test::$prop3 in %s on line %d
57+
Warning: unserialize(): Cannot unserialize value for virtual property Test::$prop3 in %s on line %d
5858

5959
Warning: unserialize(): Error at offset 26 of 32 bytes in %s on line %d
6060
bool(false)

ext/standard/var_unserializer.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ static int is_property_visibility_changed(zend_class_entry *ce, zval *key)
561561
return 1;
562562
} else {
563563
php_error_docref(NULL, E_WARNING,
564-
"Cannot unserialize value for hooked property %s::$%s",
564+
"Cannot unserialize value for virtual property %s::$%s",
565565
ZSTR_VAL(existing_propinfo->ce->name), Z_STRVAL_P(key));
566566
zval_ptr_dtor_str(key);
567567
return -1;

0 commit comments

Comments
 (0)