X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php83-pecl-igbinary_3.2.15-1.el8/tests
opt
/
alt
/
tests
/
alt-php83-pecl-igbinary_3.2.15-1.el8
/
tests
/
ðŸ“
..
📄
__serialize_001.phpt
(848 B)
📄
__serialize_002.phpt
(478 B)
📄
__serialize_003.phpt
(1.7 KB)
📄
__serialize_004.phpt
(2.68 KB)
📄
__serialize_005.phpt
(1.57 KB)
📄
__serialize_006.phpt
(1.2 KB)
📄
__serialize_007.phpt
(1.48 KB)
📄
__serialize_008.phpt
(1.56 KB)
📄
__serialize_009.phpt
(2.2 KB)
📄
__serialize_010.phpt
(1.52 KB)
📄
__serialize_011.phpt
(2.72 KB)
📄
__serialize_012.phpt
(1.08 KB)
📄
__serialize_013.phpt
(2.77 KB)
📄
__serialize_013_php8.phpt
(2.77 KB)
📄
__serialize_014.phpt
(1.53 KB)
📄
__serialize_014_php8.phpt
(1.43 KB)
📄
__serialize_015.phpt
(2.44 KB)
📄
__serialize_016.phpt
(3.46 KB)
📄
__serialize_016_php8.phpt
(3.91 KB)
📄
__serialize_017.phpt
(931 B)
📄
__serialize_018.phpt
(2.3 KB)
📄
__serialize_019.phpt
(1.33 KB)
📄
__serialize_020.phpt
(16.43 KB)
📄
__serialize_021.phpt
(1.02 KB)
📄
__serialize_022.phpt
(1023 B)
📄
igbinary_001.phpt
(555 B)
📄
igbinary_002.phpt
(720 B)
📄
igbinary_003.phpt
(1.01 KB)
📄
igbinary_004.phpt
(1.08 KB)
📄
igbinary_005.phpt
(839 B)
📄
igbinary_006.phpt
(886 B)
📄
igbinary_007.phpt
(1.11 KB)
📄
igbinary_008.phpt
(1.03 KB)
📄
igbinary_009.phpt
(1.44 KB)
📄
igbinary_009b.phpt
(2.55 KB)
📄
igbinary_009b_php8.phpt
(2.99 KB)
📄
igbinary_010.phpt
(951 B)
📄
igbinary_012.phpt
(1.27 KB)
📄
igbinary_013.phpt
(1 KB)
📄
igbinary_014.phpt
(662 B)
📄
igbinary_015.phpt
(1.33 KB)
📄
igbinary_015b.phpt
(1.35 KB)
📄
igbinary_015c.phpt
(1.35 KB)
📄
igbinary_016.phpt
(1.18 KB)
📄
igbinary_017.phpt
(1019 B)
📄
igbinary_018.phpt
(1.32 KB)
📄
igbinary_020.phpt
(1.13 KB)
📄
igbinary_021.phpt
(1.35 KB)
📄
igbinary_022.phpt
(1.97 KB)
📄
igbinary_022_php82.phpt
(2.93 KB)
📄
igbinary_023.phpt
(999 B)
📄
igbinary_024.phpt
(2.22 KB)
📄
igbinary_025.phpt
(2 KB)
📄
igbinary_025b.phpt
(647 B)
📄
igbinary_026.phpt
(1.26 KB)
📄
igbinary_026_php8.phpt
(1.6 KB)
📄
igbinary_026b.phpt
(954 B)
📄
igbinary_026b_php8.phpt
(1.33 KB)
📄
igbinary_027.phpt
(1.52 KB)
📄
igbinary_028.phpt
(2.34 KB)
📄
igbinary_029.phpt
(452 B)
📄
igbinary_030_php7.phpt
(1.17 KB)
📄
igbinary_030_php72.phpt
(1.17 KB)
📄
igbinary_031.phpt
(1.78 KB)
📄
igbinary_032.phpt
(1.37 KB)
📄
igbinary_033.phpt
(900 B)
📄
igbinary_034.phpt
(627 B)
📄
igbinary_040.phpt
(1.61 KB)
📄
igbinary_041.phpt
(2.05 KB)
📄
igbinary_043.phpt
(1020 B)
📄
igbinary_044.phpt
(4.64 KB)
📄
igbinary_045b.phpt
(552 B)
📄
igbinary_045c.phpt
(1.65 KB)
📄
igbinary_046.phpt
(482 B)
📄
igbinary_046b.phpt
(705 B)
📄
igbinary_046c.phpt
(651 B)
📄
igbinary_046d.phpt
(1.22 KB)
📄
igbinary_047.phpt
(2.04 KB)
📄
igbinary_048.phpt
(552 B)
📄
igbinary_048b.phpt
(534 B)
📄
igbinary_049.phpt
(1.8 KB)
📄
igbinary_049b.phpt
(1.41 KB)
📄
igbinary_050.phpt
(1.02 KB)
📄
igbinary_051.phpt
(815 B)
📄
igbinary_052.phpt
(1.67 KB)
📄
igbinary_053.phpt
(1012 B)
📄
igbinary_054.phpt
(1.4 KB)
📄
igbinary_055.phpt
(669 B)
📄
igbinary_057.phpt
(999 B)
📄
igbinary_058.phpt
(1.36 KB)
📄
igbinary_058b.phpt
(1.37 KB)
📄
igbinary_059.phpt
(1.24 KB)
📄
igbinary_062.phpt
(1.22 KB)
📄
igbinary_063_php7.phpt
(1.2 KB)
📄
igbinary_063_php72.phpt
(1.19 KB)
📄
igbinary_064.phpt
(2.18 KB)
📄
igbinary_065.phpt
(1.53 KB)
📄
igbinary_066.phpt
(1.12 KB)
📄
igbinary_067.phpt
(822 B)
📄
igbinary_068.phpt
(461 B)
📄
igbinary_069.phpt
(359 B)
📄
igbinary_070.phpt
(802 B)
📄
igbinary_071.phpt
(2.42 KB)
📄
igbinary_071_php8.phpt
(2.34 KB)
📄
igbinary_072.phpt
(1.51 KB)
📄
igbinary_073.phpt
(1.67 KB)
📄
igbinary_074.phpt
(1.05 KB)
📄
igbinary_075.phpt
(943 B)
📄
igbinary_076.phpt
(570 B)
📄
igbinary_077.phpt
(2.33 KB)
📄
igbinary_078.phpt
(591 B)
📄
igbinary_079.phpt
(1.01 KB)
📄
igbinary_080.phpt
(587 B)
📄
igbinary_081.phpt
(1.05 KB)
📄
igbinary_082.phpt
(513 B)
📄
igbinary_082_php74.phpt
(835 B)
📄
igbinary_083.phpt
(939 B)
📄
igbinary_084.phpt
(598 B)
📄
igbinary_084b.phpt
(930 B)
📄
igbinary_085.phpt
(818 B)
📄
igbinary_086.phpt
(767 B)
📄
igbinary_087.phpt
(6.12 KB)
📄
igbinary_088.phpt
(997 B)
📄
igbinary_089.phpt
(911 B)
📄
igbinary_089_32bit.phpt
(494 B)
📄
igbinary_090.phpt
(684 B)
📄
igbinary_091.phpt
(843 B)
📄
igbinary_092.phpt
(1016 B)
📄
igbinary_093.phpt
(664 B)
📄
igbinary_094.phpt
(924 B)
📄
igbinary_095.phpt
(2.33 KB)
📄
igbinary_096.phpt
(513 B)
📄
igbinary_097.phpt
(1.06 KB)
📄
igbinary_098.phpt
(956 B)
📄
igbinary_099.phpt
(908 B)
📄
igbinary_bug54662.phpt
(549 B)
📄
igbinary_bug72134.phpt
(549 B)
📄
igbinary_enums_1.phpt
(1023 B)
📄
igbinary_enums_2.phpt
(1.8 KB)
📄
igbinary_enums_3.phpt
(470 B)
📄
igbinary_enums_3_php83.phpt
(511 B)
📄
php82_suppress_dynamic_properties_warning.inc
(677 B)
📄
sleep_mangled_name_clash.phpt
(494 B)
📄
typed_property_ref_assignment_failure.phpt
(733 B)
📄
typed_property_ref_overwrite.phpt
(776 B)
📄
typed_property_ref_overwrite2.phpt
(833 B)
📄
typed_property_refs.phpt
(2.3 KB)
📄
typed_property_refs_php74.phpt
(2.32 KB)
Editing: __serialize_015.phpt
--TEST-- __serialize() mechanism (015): Uninitialized properties from __sleep should throw when serializing --SKIPIF-- <?php if (PHP_VERSION_ID < 70400) { echo "skip __serialize/__unserialize not supported in php < 7.4 for compatibility with igbinary_serialize()"; } ?> --FILE-- <?php error_reporting(E_ALL); set_error_handler(function ($errno, $message) { echo $message . "\n"; }); class OSI { public stdClass $o; public string $s; public ?int $i; public float $f; public function __sleep() { return ['o', 's', 'i']; } } class SimplePublic { public ?int $i; public function __sleep() { return ['i']; } } class SimpleProtected { protected ?int $i; public function __sleep() { return ['i']; } public function __set($name, $value) { $this->$name = $value; } } class SimplePrivate { private ?int $i; public function __sleep() { return ['i']; } public function __set($name, $value) { $this->$name = $value; } } // 00000002 -- header // 17 03 4d79436c617373 -- object of type "MyClass" // 14 03 000000 -- with 3 uninitialized properties $m = new OSI(); function try_serialize_invalid($o) { try { var_dump(bin2hex($s = igbinary_serialize($o))); } catch (Error $e) { printf("Caught %s: %s\n", get_class($e), $e->getMessage()); } } // These should throw whether or not the uninitialized property is nullable. try_serialize_invalid(new OSI()); try_serialize_invalid(new SimplePublic()); try_serialize_invalid(new SimpleProtected()); try_serialize_invalid(new SimplePrivate()); $s = new SimplePublic(); $s->i = null; try_serialize_invalid($s); $s = new SimpleProtected(); $s->i = 0; try_serialize_invalid($s); $s = new SimplePrivate(); $s->i = null; try_serialize_invalid($s); --EXPECT-- Caught Error: Typed property OSI::$o must not be accessed before initialization (in __sleep) Caught Error: Typed property SimplePublic::$i must not be accessed before initialization (in __sleep) Caught Error: Typed property SimpleProtected::$i must not be accessed before initialization (in __sleep) Caught Error: Typed property SimplePrivate::$i must not be accessed before initialization (in __sleep) string(48) "00000002170c53696d706c655075626c6963140111016900" string(62) "00000002170f53696d706c6550726f74656374656414011104002a00690600" string(80) "00000002170d53696d706c6550726976617465140111100053696d706c6550726976617465006900"
Upload File
Create Folder