1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/date/tests/bug54283.phpt

16 lines
350 B
PHP

--TEST--
Bug #54283 (new DatePeriod(NULL) causes crash)
--FILE--
<?php
try {
var_dump(new DatePeriod(NULL));
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
Deprecated: DatePeriod::__construct(): Passing null to parameter #1 ($start) of type string is deprecated in %s on line %d
string(24) "Unknown or bad format ()"