php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61728
Patch bug61728.patch revision 2012-04-14 16:58 UTC by laruence@php.net
Patch bug61728.phpt revision 2012-04-14 16:57 UTC by laruence@php.net

Patch bug61728.phpt for Reproducible crash Bug #61728

Patch version 2012-04-14 16:57 UTC

Return to Bug #61728 | Download this patch
Patch Revisions:

Developer: laruence@php.net

--TEST--
Bug #61728 (php-fpm SIGSEGV running friendica on nginx)
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php 
function output_html($ext) {
    return strlen($ext);
}

function open ($save_path, $session_name) { 
    return true;
} 

function close() { 
    return true;
} 

function read ($id) { 
} 

function write ($id, $sess_data) { 
    ob_start("output_html");
    echo "laruence";
    ob_end_flush();
    return true;
} 

function destroy ($id) { 
} 

function gc ($maxlifetime) { 
    return true; 
} 

session_set_save_handler ("open", "close", "read", "write", "destroy", "gc"); 
session_start();
--EXPECTF--
8
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC