1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00
Files
archived-php-src/ext/date/tests/bug54283.phpt
2020-02-03 22:52:20 +01:00

15 lines
253 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());
}
?>
--EXPECT--
string(51) "DatePeriod::__construct(): Unknown or bad format ()"