--TEST-- broken random data test : MessagePackUnpacker::feed --SKIPIF-- =")) { die("skip PHP >= 7.1"); } ?> --FILE-- feed($serialized); if ($unpacker->execute()) { if (($unserialized = $unpacker->data()) === null) { return true; } $unpacker->reset(); } else { return true; } // whole data is read? if ($serialized !== msgpack_serialize($unserialized)) { return true; } echo bin2hex($serialized), "\n"; var_dump($unserialized); return false; } mt_srand(0x4c05b583); for ($i = 0; $i < 100; ++$i) { if (!test()) break; } ?> --EXPECT--