Skip to content

Commit 3e7f47c

Browse files
jrbassosmalyshev
authored andcommitted
Renamed test case to match with reported bug
1 parent 4076a4d commit 3e7f47c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ PHP NEWS
99
. Fixed bug #69134 (Per Directory Values overrides PHP_INI_SYSTEM
1010
configuration options). (Anatol Belski)
1111
. Fixed bug #69207 (move_uploaded_file allows nulls in path). (Stas)
12+
. Fixed bug #69210 (serialize function return corrupted data when sleep has
13+
non-string values). (Juan Basso)
1214
. Fixed bug #69212 (Leaking VIA_HANDLER func when exception thrown in
1315
__call/... arg passing). (Nikita)
1416
. Fixed bug #69221 (Segmentation fault when using a generator in combination

ext/standard/var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static void php_var_serialize_class(smart_str *buf, zval *struc, zval *retval_pt
658658

659659
if (Z_TYPE_PP(name) != IS_STRING) {
660660
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "__sleep should return an array only containing the names of instance-variables to serialize.");
661-
convert_to_string(name);
661+
convert_to_string(*name);
662662
}
663663
propers = Z_OBJPROP_P(struc);
664664
if (zend_hash_find(propers, Z_STRVAL_PP(name), Z_STRLEN_PP(name) + 1, (void *) &d) == SUCCESS) {

0 commit comments

Comments
 (0)