php-src/ext/date/tests/idate_variation7.phpt

32 lines
780 B
Plaintext
Raw Normal View History

2008-12-08 10:41:47 +00:00
--TEST--
Test idate() function : usage variation - Checking for Strict Standards.
2008-12-18 14:53:46 +00:00
--INI--
date.timezone=
2008-12-08 10:41:47 +00:00
--FILE--
<?php
/* Prototype : int idate(string format [, int timestamp])
* Description: Format a local time/date as integer
* Source code: ext/date/php_date.c
* Alias to functions:
*/
echo "*** Testing idate() : usage variation ***\n";
// Initialise function arguments not being substituted (if any)
$format = 'Y';
$timestamp = 1218163088;
var_dump( idate($format) );
var_dump( idate($format, $timestamp) );
?>
===DONE===
--EXPECTF--
*** Testing idate() : usage variation ***
Warning: idate(): It is not safe to rely on the system's timezone settings.%s
2009-01-05 17:53:53 +00:00
int(2009)
2008-12-08 10:41:47 +00:00
Warning: idate(): It is not safe to rely on the system's timezone settings.%s
2008-12-08 10:41:47 +00:00
int(2008)
===DONE===