6
if(!extension_loaded('igbinary')) {
7
dl('igbinary.' . PHP_SHLIB_SUFFIX);
10
function test($type, $variable, $test) {
11
$serialized = igbinary_serialize($variable);
12
$unserialized = igbinary_unserialize($serialized);
13
// $serialized = serialize($variable);
14
// $unserialized = unserialize($serialized);
17
echo substr(bin2hex($serialized), 8), "\n";
18
// echo $serialized, "\n";
19
echo $test || $unserialized == $variable ? 'OK' : 'ERROR';
28
function __construct($a, $b, $c) {
35
$o = new Obj(1, 2, 3);
38
test('object', $o, false);
41
* you can add regression tests for your extension here
43
* the output of your test code has to be equal to the
44
* text in the --EXPECT-- section below for the tests
45
* to pass, differences between the output and the
46
* expected text are interpreted as failure
48
* see php5/README.TESTING for further information on
49
* writing regression tests
54
17034f626a140311016106011104002a006206021106004f626a00630603