File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / time / bug38524.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Bug #38524 (strptime() does not initialize the internal date storage structure)
--SKIPIF--
<?php if (!function_exists('strptime')) echo "SKIP"; ?>
--FILE--
<?php
	var_dump(strptime('2006-08-20', '%Y-%m-%d'));
?>
===DONE===
--EXPECTF--
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) ""
}
===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>