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 #38524 (strptime() does not initialize the internal date storage structure) -..

Decoded Output download

--TEST--
Bug #38524 (strptime() does not initialize the internal date storage structure)
--SKIPIF--
<?php
if (!function_exists('strptime')) echo "SKIP";
if (str_contains(PHP_OS, 'FreeBSD')) {
    die("skip strptime() behaves differently on FreeBSD");
}
?>
--FILE--
<?php
    var_dump(strptime('2006-08-20', '%Y-%m-%d'));
?>
--EXPECTF--
Deprecated: Function strptime() is deprecated in %s on line %d
array(9) {
  ["tm_sec"]=>
  int(0)
  ["tm_min"]=>
  int(0)
  ["tm_hour"]=>
  int(0)
  ["tm_mday"]=>
  int(20)
  ["tm_mon"]=>
  int(7)
  ["tm_year"]=>
  int(106)
  ["tm_wday"]=>
  int(0)
  ["tm_yday"]=>
  int(%d)
  ["unparsed"]=>
  string(0) ""
}

Did this file decode correctly?

Original Code

--TEST--
Bug #38524 (strptime() does not initialize the internal date storage structure)
--SKIPIF--
<?php
if (!function_exists('strptime')) echo "SKIP";
if (str_contains(PHP_OS, 'FreeBSD')) {
    die("skip strptime() behaves differently on FreeBSD");
}
?>
--FILE--
<?php
    var_dump(strptime('2006-08-20', '%Y-%m-%d'));
?>
--EXPECTF--
Deprecated: Function strptime() is deprecated in %s on line %d
array(9) {
  ["tm_sec"]=>
  int(0)
  ["tm_min"]=>
  int(0)
  ["tm_hour"]=>
  int(0)
  ["tm_mday"]=>
  int(20)
  ["tm_mon"]=>
  int(7)
  ["tm_year"]=>
  int(106)
  ["tm_wday"]=>
  int(0)
  ["tm_yday"]=>
  int(%d)
  ["unparsed"]=>
  string(0) ""
}

Function Calls

function_exists 1

Variables

None

Stats

MD5 90e43201241199d12fa7549806efa936
Eval Count 0
Decode Time 68 ms