mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
3b874086e2
Caused by a refactoring strtotime() called zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ...) instead of zend_parse_parameters().
11 lines
312 B
PHP
11 lines
312 B
PHP
--TEST--
|
|
Bug #70245 (strtotime does not emit warning when 2nd parameter is object or string)
|
|
--FILE--
|
|
<?php
|
|
$d = new DateTime('2011-01-15 00:00:00');
|
|
var_dump(strtotime('-1 month', $d));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: strtotime() expects parameter 2 to be integer, object given in %sbug70245.php on line %d
|
|
bool(false)
|