mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
17 lines
462 B
Plaintext
17 lines
462 B
Plaintext
|
--TEST--
|
||
|
Check the function date_timestamp_set() with first parameter wrong (array).
|
||
|
--CREDITS--
|
||
|
Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
|
||
|
--INI--
|
||
|
date.timezone = UTC;
|
||
|
date_default_timezone_set("America/Sao_Paulo");
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$dftz021 = date_default_timezone_get(); //UTC
|
||
|
|
||
|
$dtms021 = array();
|
||
|
|
||
|
date_timestamp_set($dtms021, 123456789);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: date_timestamp_set() expects parameter 1 to be DateTime, array given in %s on line %d
|