mirror of
https://github.com/php/php-src.git
synced 2024-09-30 06:16:08 +00:00
0e1277e317
#- [DOC]
32 lines
780 B
PHP
32 lines
780 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 ***
|
|
|
|
Warning: idate(): It is not safe to rely on the system's timezone settings.%s
|
|
int(2009)
|
|
|
|
Warning: idate(): It is not safe to rely on the system's timezone settings.%s
|
|
int(2008)
|
|
===DONE===
|