bug74852.phpt 357 B

1234567891011121314151617
  1. --TEST--
  2. Bug #74852 property_exists returns true on unknown DateInterval property
  3. --FILE--
  4. <?php
  5. $interval = new DateInterval('P2D');
  6. var_dump(property_exists($interval,'abcde'));
  7. var_dump(isset($interval->abcde));
  8. var_dump($interval->abcde);
  9. ?>
  10. --EXPECTF--
  11. bool(false)
  12. bool(false)
  13. Warning: Undefined property: DateInterval::$abcde in %s on line %d
  14. NULL