???????????????????????????? ??????????????/????????????????? ............/............... .........................../... ????????????????????????????? >>>>>>>>>>>>>/>>>>>>>>>>>>>>>>> ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>/>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ???????????????????????????? ??????????????/????????????????? ............/............... .........................../... ????????????????????????????? >>>>>>>>>>>>>/>>>>>>>>>>>>>>>>> ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>/>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --TEST-- igbinary_unserialize with references to typed properties shall skip the references or fail --SKIPIF-- = 80000) { echo "skip different error message format"; } ?> --FILE-- a = 1234; $a->b = &$a->a; var_dump(bin2hex($s = igbinary_serialize($a))); var_dump(igbinary_unserialize($s)); echo "Test B\n"; $b = new B(); $b->a = -1234; $b->b = &$b->a; var_dump(bin2hex($s = igbinary_serialize($b))); var_dump(igbinary_unserialize($s)); $z = new Z(); $z->a = null; $z->b = &$z->a; $s = igbinary_serialize($z); try { var_dump(igbinary_unserialize(str_replace('Z', 'A', $s))); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { var_dump(igbinary_unserialize(str_replace('Z', 'B', $s))); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } $z = new Z(); $z->a = 1; $z->b = &$z->a; $s = igbinary_serialize($z); try { var_dump(igbinary_unserialize(str_replace('Z', 'C', $s))); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } $z = new Z(); $z->a = 'x'; $z->b = &$z->a; $s = igbinary_serialize($z); try { var_dump(igbinary_unserialize(str_replace('Z', 'C', $s))); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } $z = new Z(); $z->a = 1; $z->b = &$z->a; $s = igbinary_serialize($z); try { var_dump(igbinary_unserialize(str_replace('Z', 'D', $s))); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } /* try { var_dump(unserialize('O:1:"D":2:{s:1:"a";i:1;s:1:"b";R:2;}')); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } */ ?> --EXPECT-- string(44) "000000021701411402110161250804d2110162250101" object(A)#2 (2) { ["a"]=> &int(1234) ["b"]=> &int(1234) } Test B string(44) "000000021701421402110161250904d2110162250101" object(B)#3 (2) { ["a"]=> &int(-1234) ["b"]=> &int(-1234) } Typed property A::$a must be int, null used Typed property B::$b must be int, null used Typed property C::$b must be string, int used Typed property C::$a must be int, string used Reference with value of type int held by property D::$a of type int is not compatible with property D::$b of type float