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 localtime() function : error conditions --SKIPIF-- <?php if (!function_exist..

Decoded Output download

SKIP strptime function not available in build

Did this file decode correctly?

Original Code

--TEST--
Test localtime() function : error conditions
--SKIPIF--
<?php
if (!function_exists('strptime')) {
    echo "SKIP strptime function not available in build";
}
?>
--FILE--
<?php
//Set the default time zone
date_default_timezone_set("Europe/London");

echo "*** Testing strptime() : error conditions ***\n";

echo "\n-- Testing strptime() function on failure --\n";
$format = '%b %d %Y %H:%M:%S';
var_dump( strptime('foo', $format) );

?>
--EXPECTF--
*** Testing strptime() : error conditions ***

-- Testing strptime() function on failure --

Deprecated: Function strptime() is deprecated in %s on line %d
bool(false)

Function Calls

function_exists 1
date_default_timezone_set 1

Variables

None

Stats

MD5 39c657596544128ae679d366646c6f20
Eval Count 0
Decode Time 101 ms