Skip to content

Commit 5c07e3d

Browse files
authored
Enhance issue067.phpt
1 parent 0335247 commit 5c07e3d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/issue067.phpt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ if (!extension_loaded("msgpack")) {
88
?>
99
--FILE--
1010
<?php
11-
echo msgpack_unpack("\xcf"."\xff\xff\xff\xff"."\xff\xff\xff\xff"), "\n";
11+
var_dump(msgpack_unpack("\xcf"."\x7f\xff\xff\xff"."\xff\xff\xff\xff"));
12+
var_dump(msgpack_unpack("\xcf"."\x80\x00\x00\x00"."\x00\x00\x00\x00"));
13+
var_dump(msgpack_unpack("\xcf"."\xff\xff\xff\xff"."\xff\xff\xff\xff"));
1214
?>
1315
OK
1416
--EXPECT--
15-
18446744073709551615
17+
int(9223372036854775807)
18+
string(19) "9223372036854775808"
19+
string(20) "18446744073709551615"
1620
OK

0 commit comments

Comments
 (0)