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/session/tests/ |
files >> //php-7.1.11/ext/session/tests/bug60634_error_1.phpt |
--TEST-- Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write during exec --INI-- session.save_path= session.name=PHPSESSID session.save_handler=files --SKIPIF-- <?php include('skipif.inc'); ?> --FILE-- <?php ob_start(); function open($save_path, $session_name) { return true; } function close() { echo "close: goodbye cruel world\n"; return true; } function read($id) { return ''; } function write($id, $session_data) { echo "write: goodbye cruel world\n"; undefined_function(); } function destroy($id) { return true; } function gc($maxlifetime) { return true; } session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); session_start(); session_write_close(); echo "um, hi\n"; /* FIXME: Something wrong. It should try to close after error, otherwise session may keep "open" state. */ ?> --EXPECTF-- write: goodbye cruel world Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d Stack trace: #0 [internal function]: write(%s, '') #1 %s(%d): session_write_close() #2 {main} thrown in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`