File: issue023.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 (16 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Issue #23 (Empty objects get serialized with incorrect type)
--SKIPIF--
<?php
if (!extension_loaded("msgpack")) {
   echo "skip";
}
--FILE--
<?php
class test {}
print_r(msgpack_unserialize (msgpack_serialize (new test())));
?>
--EXPECTF--
test Object
(
)