bug54283.phpt 350 B

123456789101112131415
  1. --TEST--
  2. Bug #54283 (new DatePeriod(NULL) causes crash)
  3. --FILE--
  4. <?php
  5. try {
  6. var_dump(new DatePeriod(NULL));
  7. } catch (Exception $e) {
  8. var_dump($e->getMessage());
  9. }
  10. ?>
  11. --EXPECTF--
  12. Deprecated: DatePeriod::__construct(): Passing null to parameter #1 ($start) of type string is deprecated in %s on line %d
  13. string(24) "Unknown or bad format ()"