File: issue149.phpt

package info (click to toggle)
php-msgpack 1%3A2.2.0~rc2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,200 kB
  • sloc: ansic: 3,817; xml: 416; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Issue #149 (msgpack (un)pack error with serialize())
--SKIPIF--
<?php
if (!extension_loaded("msgpack")) {
   echo "skip";
}
--INI--
msgpack.php_only=1
--FILE--
Test
<?php
$data = unserialize(file_get_contents(__DIR__."/issue149.ser.txt"));
$check = msgpack_unpack(msgpack_pack($data));
var_dump($check == $data);
?>
OK
--EXPECT--
Test
bool(true)
OK