Annotation of embedaddon/php/ext/session/tests/bug60634_error_4.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write after exec
        !             3: --XFAIL--
        !             4: Long term low priority bug, working on it
        !             5: --INI--
        !             6: session.save_path=
        !             7: session.name=PHPSESSID
        !             8: --SKIPIF--
        !             9: <?php include('skipif.inc'); ?>
        !            10: --FILE--
        !            11: <?php
        !            12: 
        !            13: ob_start();
        !            14: 
        !            15: function open($save_path, $session_name) {
        !            16:     return true;
        !            17: }
        !            18: 
        !            19: function close() {
        !            20:        echo "close: goodbye cruel world\n";
        !            21:        exit;
        !            22: }
        !            23: 
        !            24: function read($id) {
        !            25:        return '';
        !            26: }
        !            27: 
        !            28: function write($id, $session_data) {
        !            29:        echo "write: goodbye cruel world\n";
        !            30:        throw new Exception;
        !            31: }
        !            32: 
        !            33: function destroy($id) {
        !            34:     return true;
        !            35: }
        !            36: 
        !            37: function gc($maxlifetime) {
        !            38:     return true;
        !            39: }
        !            40: 
        !            41: session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
        !            42: session_start();
        !            43: 
        !            44: ?>
        !            45: --EXPECTF--
        !            46: write: goodbye cruel world
        !            47: 
        !            48: Fatal error: Uncaught exception 'Exception' in %s

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>