1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/date/tests/bug54283.phpt

15 lines
248 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--
string(51) "DatePeriod::__construct(): Unknown or bad format ()"