1--TEST--
2Test the function date_timestamp_set() with second null parameter.
3--CREDITS--
4Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
5--INI--
6date.timezone = UTC;
7date_default_timezone_set("America/Sao_Paulo");
8--FILE--
9<?php
10$dftz021 = date_default_timezone_get(); //UTC
11
12$dtms021 = date_create();
13
14var_dump(date_timestamp_set($dtms021, null));
15?>
16--EXPECTF--
17Deprecated: date_timestamp_set(): Passing null to parameter #2 ($timestamp) of type int is deprecated in %s on line %d
18object(DateTime)#1 (3) {
19  ["date"]=>
20  string(26) "1970-01-01 00:00:00.000000"
21  ["timezone_type"]=>
22  int(3)
23  ["timezone"]=>
24  string(3) "UTC"
25}
26