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-- Test session_set_save_handler() : calling default handler when save_handler=user ..
Decoded Output download
--TEST--
Test session_set_save_handler() : calling default handler when save_handler=user
--INI--
session.save_handler=user
session.name=PHPSESSID
--EXTENSIONS--
session
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
ob_start();
echo "*** Testing session_set_save_handler() : calling default handler when save_handler=user ***
";
$oldHandler = ini_get('session.save_handler');
$handler = new SessionHandler;
session_set_save_handler($handler);
session_start();
?>
--EXPECT--
Fatal error: PHP Startup: Session save handler "user" cannot be set by ini_set() in Unknown on line 0
*** Testing session_set_save_handler() : calling default handler when save_handler=user ***
Did this file decode correctly?
Original Code
--TEST--
Test session_set_save_handler() : calling default handler when save_handler=user
--INI--
session.save_handler=user
session.name=PHPSESSID
--EXTENSIONS--
session
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
ob_start();
echo "*** Testing session_set_save_handler() : calling default handler when save_handler=user ***\n";
$oldHandler = ini_get('session.save_handler');
$handler = new SessionHandler;
session_set_save_handler($handler);
session_start();
?>
--EXPECT--
Fatal error: PHP Startup: Session save handler "user" cannot be set by ini_set() in Unknown on line 0
*** Testing session_set_save_handler() : calling default handler when save_handler=user ***
Function Calls
None |
Stats
MD5 | 3f8d53b3173a9df4527b2b26d61eab7c |
Eval Count | 0 |
Decode Time | 83 ms |