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

Decoded Output download

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

ob_start();

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

var_dump(session_start());
var_dump(session_destroy());
var_dump(session_destroy());
var_dump(session_destroy());
var_dump(session_destroy());
var_dump(session_destroy());

echo "Done";
ob_end_flush();
?>
--EXPECTF--
*** Testing session_destroy() : variation ***
bool(true)
bool(true)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)
Done

Did this file decode correctly?

Original Code

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

ob_start();

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

var_dump(session_start());
var_dump(session_destroy());
var_dump(session_destroy());
var_dump(session_destroy());
var_dump(session_destroy());
var_dump(session_destroy());

echo "Done";
ob_end_flush();
?>
--EXPECTF--
*** Testing session_destroy() : variation ***
bool(true)
bool(true)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)

Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)
Done

Function Calls

None

Variables

None

Stats

MD5 ba33c09f260397b6cb93af713d60d6d5
Eval Count 0
Decode Time 97 ms