Skip to content

Commit c15d51f

Browse files
committed
Fix deprecation warning in test
[ci skip]
1 parent 25d6b13 commit c15d51f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/standard/tests/serialize/gh12265b.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ printf("serialized original: %s\n", $sc);
4141
printf("serialized temp : %s\n", $stc);
4242

4343
?>
44-
--EXPECT--
44+
--EXPECTF--
45+
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
4546
serialized original: O:1:"B":1:{s:1:"a";O:1:"A":1:{s:1:"x";r:1;}}
4647
serialized temp : O:1:"B":1:{s:1:"a";O:1:"A":1:{s:1:"x";r:1;}}
4748
serialized original: O:1:"C":1:{s:1:"b";O:1:"B":1:{s:1:"a";O:1:"A":1:{s:1:"x";r:2;}}}

0 commit comments

Comments
 (0)