php-src/ext/date/tests/idate_variation7.phpt
2009-01-05 17:53:53 +00:00

32 lines
798 B
PHP

--TEST--
Test idate() function : usage variation - Checking for Strict Standards.
--INI--
date.timezone=
--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 ***
Strict Standards: idate(): It is not safe to rely on the system's timezone settings.%s
int(2009)
Strict Standards: idate(): It is not safe to rely on the system's timezone settings.%s
int(2008)
===DONE===