1--TEST--
2Check for bool serialisation
3--SKIPIF--
4--FILE--
5<?php
6if(!extension_loaded('msgpack')) {
7    dl('msgpack.' . PHP_SHLIB_SUFFIX);
8}
9
10function test($type, $variable) {
11    $serialized = msgpack_serialize($variable);
12    $unserialized = msgpack_unserialize($serialized);
13
14    echo $type, PHP_EOL;
15    echo bin2hex($serialized), PHP_EOL;
16    var_dump($unserialized);
17    echo $unserialized === $variable ? 'OK' : 'ERROR', PHP_EOL;
18}
19
20test('bool true',  true);
21test('bool false', false);
22?>
23--EXPECT--
24bool true
25c3
26bool(true)
27OK
28bool false
29c2
30bool(false)
31OK
32