ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php83-pecl-igbinary_3.2.15-1.el8/tests/__serialize_002.phpt
Back
--TEST-- __serialize() mechanism (002): TypeError on invalid return type --SKIPIF-- <?php if (PHP_VERSION_ID < 70400) { echo "skip __serialize/__unserialize not supported in php < 7.4 for compatibility with serialize()"; } ?> --FILE-- <?php class Test { public function __serialize() { return $this; } } try { igbinary_serialize(new Test); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Test::__serialize() must return an array
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.35 |
proxy
|
phpinfo
|
Settings