File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / bug61728.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:00 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    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>