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_cache_limiter() function : variation --EXTENSIONS-- session --SKIPIF..

Decoded Output download

--TEST--
Test session_cache_limiter() function : variation
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php

ob_start();

echo "*** Testing session_cache_limiter() : variation ***
";

var_dump(ini_get("session.cache_limiter"));
var_dump(session_start());
var_dump(ini_get("session.cache_limiter"));
var_dump(session_cache_limiter("public"));
var_dump(ini_get("session.cache_limiter"));
var_dump(session_destroy());
var_dump(ini_get("session.cache_limiter"));

echo "Done";
ob_end_flush();
?>
--EXPECTF--
*** Testing session_cache_limiter() : variation ***
string(7) "nocache"
bool(true)
string(7) "nocache"

Warning: session_cache_limiter(): Session cache limiter cannot be changed when a session is active in %s on line %d
bool(false)
string(7) "nocache"
bool(true)
string(7) "nocache"
Done

Did this file decode correctly?

Original Code

--TEST--
Test session_cache_limiter() function : variation
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php

ob_start();

echo "*** Testing session_cache_limiter() : variation ***\n";

var_dump(ini_get("session.cache_limiter"));
var_dump(session_start());
var_dump(ini_get("session.cache_limiter"));
var_dump(session_cache_limiter("public"));
var_dump(ini_get("session.cache_limiter"));
var_dump(session_destroy());
var_dump(ini_get("session.cache_limiter"));

echo "Done";
ob_end_flush();
?>
--EXPECTF--
*** Testing session_cache_limiter() : variation ***
string(7) "nocache"
bool(true)
string(7) "nocache"

Warning: session_cache_limiter(): Session cache limiter cannot be changed when a session is active in %s on line %d
bool(false)
string(7) "nocache"
bool(true)
string(7) "nocache"
Done

Function Calls

None

Variables

None

Stats

MD5 0bb18bace58b57f6b9ca7ca7279db5f6
Eval Count 0
Decode Time 98 ms