X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-msgpack_2.2.0-1.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-msgpack_2.2.0-1.el8
/
tests
/
ðŸ“
..
📄
001.phpt
(203 B)
📄
002.phpt
(489 B)
📄
003.phpt
(562 B)
📄
004.phpt
(861 B)
📄
005.phpt
(542 B)
📄
006.phpt
(604 B)
📄
007.phpt
(1.06 KB)
📄
008.phpt
(1.2 KB)
📄
009.phpt
(1.47 KB)
📄
009a.phpt
(1.43 KB)
📄
010.phpt
(804 B)
📄
012.phpt
(963 B)
📄
013.phpt
(892 B)
📄
014.phpt
(887 B)
📄
015.phpt
(1009 B)
📄
015b.phpt
(1016 B)
📄
015e.phpt
(1.02 KB)
📄
016.phpt
(1.16 KB)
📄
017.phpt
(795 B)
📄
018.phpt
(1.54 KB)
📄
019.phpt
(841 B)
📄
020.phpt
(606 B)
📄
021.phpt
(1.12 KB)
📄
021a.phpt
(1.26 KB)
📄
022.phpt
(854 B)
📄
023.phpt
(556 B)
📄
024.phpt
(3.32 KB)
📄
025.phpt
(2.09 KB)
📄
026.phpt
(1.59 KB)
📄
026a.phpt
(1.55 KB)
📄
027.phpt
(1.22 KB)
📄
028.phpt
(3.51 KB)
📄
029.phpt
(934 B)
📄
030.phpt
(2.26 KB)
📄
031.phpt
(2.24 KB)
📄
032.phpt
(1.28 KB)
📄
033.phpt
(965 B)
📄
034.phpt
(723 B)
📄
035.phpt
(886 B)
📄
040.phpt
(906 B)
📄
040b.phpt
(957 B)
📄
040c.phpt
(1.09 KB)
📄
040d.phpt
(1.08 KB)
📄
041.phpt
(1.05 KB)
📄
042.phpt
(964 B)
📄
050.phpt
(1.58 KB)
📄
060.phpt
(4.62 KB)
📄
061.phpt
(4.69 KB)
📄
062.phpt
(1.15 KB)
📄
063.phpt
(1.24 KB)
📄
064.phpt
(4.65 KB)
📄
065.phpt
(4.72 KB)
📄
066.phpt
(1.23 KB)
📄
067.phpt
(1.33 KB)
📄
070.phpt
(4.27 KB)
📄
071.phpt
(4.31 KB)
📄
072.phpt
(5.19 KB)
📄
073.phpt
(5.19 KB)
📄
080.phpt
(3.79 KB)
📄
081.phpt
(3.85 KB)
📄
082.phpt
(4.75 KB)
📄
083.phpt
(4.74 KB)
📄
084.phpt
(3.82 KB)
📄
085.phpt
(4.72 KB)
📄
086.phpt
(4.72 KB)
📄
087.phpt
(4.02 KB)
📄
088.phpt
(4.92 KB)
📄
089.phpt
(5.22 KB)
📄
090.phpt
(7.69 KB)
📄
091.phpt
(7.82 KB)
📄
092.phpt
(7.52 KB)
📄
093.phpt
(7.65 KB)
📄
094.phpt
(7.74 KB)
📄
095.phpt
(7.88 KB)
📄
096.phpt
(7.57 KB)
📄
097.phpt
(7.7 KB)
📄
098.phpt
(7.6 KB)
📄
099.phpt
(7.85 KB)
📄
100.phpt
(7.98 KB)
📄
101.phpt
(7.68 KB)
📄
102.phpt
(7.81 KB)
📄
103.phpt
(7.71 KB)
📄
104.phpt
(1.46 KB)
📄
105.phpt
(1.47 KB)
📄
106.phpt
(1.66 KB)
📄
107.phpt
(1.67 KB)
📄
108.phpt
(1.78 KB)
📄
109.phpt
(1.79 KB)
📄
110.phpt
(2.34 KB)
📄
111.phpt
(2.34 KB)
📄
112.phpt
(3.18 KB)
📄
113.phpt
(3.19 KB)
📄
114.phpt
(3.39 KB)
📄
115.phpt
(1.54 KB)
📄
116.phpt
(1.55 KB)
📄
117.phpt
(1.74 KB)
📄
118.phpt
(1.75 KB)
📄
119.phpt
(1.86 KB)
📄
120.phpt
(1.87 KB)
📄
121.phpt
(2.41 KB)
📄
122.phpt
(2.42 KB)
📄
123.phpt
(3.26 KB)
📄
124.phpt
(3.26 KB)
📄
125.phpt
(3.47 KB)
📄
126.phpt
(1.41 KB)
📄
127.phpt
(1.42 KB)
📄
128.phpt
(1.61 KB)
📄
129.phpt
(1.62 KB)
📄
130.phpt
(1.73 KB)
📄
131.phpt
(1.74 KB)
📄
132.phpt
(2.29 KB)
📄
133.phpt
(2.29 KB)
📄
134.phpt
(3.13 KB)
📄
135.phpt
(3.13 KB)
📄
136.phpt
(3.34 KB)
📄
137.phpt
(1.13 KB)
📄
138.phpt
(1.04 KB)
📄
139.phpt
(2.45 KB)
📄
140.phpt
(2.45 KB)
📄
bug002.phpt
(409 B)
📄
bug006.phpt
(652 B)
📄
bug011.phpt
(311 B)
📄
bug012.phpt
(906 B)
📄
issue067_32bit.phpt
(536 B)
📄
issue080.phpt
(428 B)
📄
issue081.phpt
(1.11 KB)
📄
issue083.phpt
(512 B)
📄
issue091.phpt
(751 B)
📄
issue094.phpt
(1.11 KB)
📄
issue137.phpt
(402 B)
📄
issue149.phpt
(358 B)
📄
issue149.ser.txt
(1.18 MB)
Editing: 089.phpt
--TEST-- disabled php only for class unpacker (set option) --SKIPIF-- <?php if (version_compare(PHP_VERSION, '5.1.0') < 0) { echo "skip tests in PHP 5.1 or newer"; } --FILE-- <?php if(!extension_loaded('msgpack')) { dl('msgpack.' . PHP_SHLIB_SUFFIX); } function test($type, $variable, $test = null) { $msgpack = new MessagePack(); if (version_compare(PHP_VERSION, '5.1.0') < 0) { $msgpack->setOption(MESSAGEPACK_OPT_PHPONLY, false); } else { $msgpack->setOption(MessagePack::OPT_PHPONLY, false); } $serialized = $msgpack->pack($variable); $unpacker = new MessagePackUnpacker(); if (version_compare(PHP_VERSION, '5.1.0') < 0) { $unpacker->setOption(MESSAGEPACK_OPT_PHPONLY, false); } else { $unpacker->setOption(MessagePack::OPT_PHPONLY, false); } $length = strlen($serialized); if (rand(0, 1)) { for ($i = 0; $i < $length;) { $len = rand(1, 10); $str = substr($serialized, $i, $len); $unpacker->feed($str); if ($unpacker->execute()) { $unserialized = $unpacker->data(); var_dump($unserialized); $unpacker->reset(); } $i += $len; } } else { $str = ""; $offset = 0; for ($i = 0; $i < $length;) { $len = rand(1, 10); $str .= substr($serialized, $i, $len); if ($unpacker->execute($str, $offset)) { $unserialized = $unpacker->data(); var_dump($unserialized); $unpacker->reset(); $str = ""; $offset = 0; } $i += $len; } } if (!is_bool($test)) { echo $unserialized === $variable ? 'OK' : 'ERROR', PHP_EOL; } else { echo $test || $unserialized == $variable ? 'OK' : 'ERROR', PHP_EOL; } } test('null', null); test('bool: true', true); test('bool: false', false); test('zero: 0', 0); test('small: 1', 1); test('small: -1', -1); test('medium: 1000', 1000); test('medium: -1000', -1000); test('large: 100000', 100000); test('large: -100000', -100000); test('double: 123.456', 123.456); test('empty: ""', ""); test('string: "foobar"', "foobar"); test('array: empty', array(), false); test('array(1, 2, 3)', array(1, 2, 3), false); test('array(array(1, 2, 3), arr...', array(array(1, 2, 3), array(4, 5, 6), array(7, 8, 9)), false); test('array("foo", "foo", "foo")', array("foo", "foo", "foo"), false); test('array("one" => 1, "two" => 2))', array("one" => 1, "two" => 2), false); test('array("kek" => "lol", "lol" => "kek")', array("kek" => "lol", "lol" => "kek"), false); test('array("" => "empty")', array("" => "empty"), false); $a = array('foo'); test('array($a, $a)', array($a, $a), false); test('array(&$a, &$a)', array(&$a, &$a), false); $a = array(null); $b = array(&$a); $a[0] = &$b; test('cyclic', $a, true); $a = array( 'a' => array( 'b' => 'c', 'd' => 'e' ), 'f' => array( 'g' => 'h' ) ); test('array', $a, false); class Obj { public $a; protected $b; private $c; function __construct($a, $b, $c) { $this->a = $a; $this->b = $b; $this->c = $c; } } test('object', new Obj(1, 2, 3), true); test('object', array(new Obj(1, 2, 3), new Obj(4, 5, 6)), true); $o = new Obj(1, 2, 3); test('object', array(&$o, &$o), true); --EXPECTF-- NULL OK bool(true) OK bool(false) OK int(0) OK int(1) OK int(-1) OK int(1000) OK int(-1000) OK int(100000) OK int(-100000) OK float(123.456) OK string(0) "" OK string(6) "foobar" OK array(0) { } OK array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } OK array(3) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(4) [1]=> int(5) [2]=> int(6) } [2]=> array(3) { [0]=> int(7) [1]=> int(8) [2]=> int(9) } } OK array(3) { [0]=> string(3) "foo" [1]=> string(3) "foo" [2]=> string(3) "foo" } OK array(2) { ["one"]=> int(1) ["two"]=> int(2) } OK array(2) { ["kek"]=> string(3) "lol" ["lol"]=> string(3) "kek" } OK array(1) { [""]=> string(5) "empty" } OK array(2) { [0]=> array(1) { [0]=> string(3) "foo" } [1]=> array(1) { [0]=> string(3) "foo" } } OK array(2) { [0]=> array(1) { [0]=> string(3) "foo" } [1]=> array(1) { [0]=> string(3) "foo" } } OK array(1) { [0]=> array(1) { [0]=> array(1) { [0]=> NULL } } } OK array(2) { ["a"]=> array(2) { ["b"]=> string(1) "c" ["d"]=> string(1) "e" } ["f"]=> array(1) { ["g"]=> string(1) "h" } } OK array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } OK array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(4) [1]=> int(5) [2]=> int(6) } } OK array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } } OK
Upload File
Create Folder