php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/json/tests/ |
files >> //php-7.1.11/ext/json/tests/bug73113.phpt |
--TEST-- Bug #73113 (Segfault with throwing JsonSerializable) Also test that the custom exception is not wrapped by ext/json --SKIPIF-- <?php if (!extension_loaded("json")) print "skip"; ?> --FILE-- <?php class JsonSerializableObject implements \JsonSerializable { public function jsonSerialize() { throw new \Exception('This error is expected'); } } $obj = new JsonSerializableObject(); try { echo json_encode($obj); } catch (\Exception $e) { echo $e->getMessage(); } --EXPECTF-- This error is expectedy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`