Skip to content

Commit 8a67d7c

Browse files
committed
Update related test in ext/standard
1 parent d57b052 commit 8a67d7c

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

ext/standard/tests/serialize/bug69425.phpt

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #69425: Use After Free in unserialize()
2+
Bug #69425 (Use After Free in unserialize())
33
--FILE--
44
<?php
55

@@ -22,11 +22,11 @@ $data = unserialize('a:2:{i:0;O:12:"DateInterval":1:{s:1:"y";R:1;}i:1;i:2;}');
2222
var_dump($data);
2323

2424
?>
25-
--EXPECT--
25+
--EXPECTF--
2626
int(1)
2727
array(2) {
2828
[0]=>
29-
object(DateInterval)#1 (16) {
29+
object(DateInterval)#1 (%d) {
3030
["y"]=>
3131
int(-1)
3232
["m"]=>
@@ -41,24 +41,12 @@ array(2) {
4141
int(-1)
4242
["f"]=>
4343
float(0)
44-
["weekday"]=>
45-
int(-1)
46-
["weekday_behavior"]=>
47-
int(-1)
48-
["first_last_day_of"]=>
49-
int(-1)
5044
["invert"]=>
5145
int(0)
5246
["days"]=>
5347
int(-1)
54-
["special_type"]=>
55-
int(0)
56-
["special_amount"]=>
57-
int(-1)
58-
["have_weekday_relative"]=>
59-
int(0)
60-
["have_special_relative"]=>
61-
int(0)
48+
["from_string"]=>
49+
bool(false)
6250
}
6351
[1]=>
6452
int(2)

0 commit comments

Comments
 (0)