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

1.1     ! misho       1: --TEST--
        !             2: Bug #61728 (PHP crash when calling ob_start in request_shutdown phase)
        !             3: --SKIPIF--
        !             4: <?php include('skipif.inc'); ?>
        !             5: --FILE--
        !             6: <?php 
        !             7: function output_html($ext) {
        !             8:     return strlen($ext);
        !             9: }
        !            10: 
        !            11: function open ($save_path, $session_name) { 
        !            12:     return true;
        !            13: } 
        !            14: 
        !            15: function close() { 
        !            16:     return true;
        !            17: } 
        !            18: 
        !            19: function read ($id) { 
        !            20: } 
        !            21: 
        !            22: function write ($id, $sess_data) { 
        !            23:     ob_start("output_html");
        !            24:     echo "laruence";
        !            25:     ob_end_flush();
        !            26:     return true;
        !            27: } 
        !            28: 
        !            29: function destroy ($id) { 
        !            30: } 
        !            31: 
        !            32: function gc ($maxlifetime) { 
        !            33:     return true; 
        !            34: } 
        !            35: 
        !            36: session_set_save_handler ("open", "close", "read", "write", "destroy", "gc"); 
        !            37: session_start();
        !            38: --EXPECTF--
        !            39: 8

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