Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #61728 (PHP crash when calling ob_start in request_shutdown phase) --EXTENSIO..

Decoded Output download

--TEST--
Bug #61728 (PHP crash when calling ob_start in request_shutdown phase)
--EXTENSIONS--
session
--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) {
    return '';
}

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

function destroy ($id) {
    return true;
}

function gc ($maxlifetime) {
    return true;
}

session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
session_start();
?>
--EXPECT--
8

Did this file decode correctly?

Original Code

--TEST--
Bug #61728 (PHP crash when calling ob_start in request_shutdown phase)
--EXTENSIONS--
session
--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) {
    return '';
}

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

function destroy ($id) {
    return true;
}

function gc ($maxlifetime) {
    return true;
}

session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
session_start();
?>
--EXPECT--
8

Function Calls

None

Variables

None

Stats

MD5 6c08ca40cc814f2500f40c30b665da9b
Eval Count 0
Decode Time 88 ms