bug81097.phpt 282 B

1234567891011121314
  1. --TEST--
  2. Bug #81097 (DateTimeZone silently falls back to UTC when providing an offset with seconds)
  3. --FILE--
  4. <?php
  5. $d = new DatetimeZone('+01:45:30');
  6. var_dump($d);
  7. ?>
  8. --EXPECTF--
  9. object(DateTimeZone)#%d (%d) {
  10. ["timezone_type"]=>
  11. int(1)
  12. ["timezone"]=>
  13. string(6) "+01:45"
  14. }