xref: /PHP-8.0/ext/date/tests/bug74852.phpt (revision 2f92957f)
1--TEST--
2Bug #74852 property_exists returns true on unknown DateInterval property
3--FILE--
4<?php
5
6$interval = new DateInterval('P2D');
7var_dump(property_exists($interval,'abcde'));
8var_dump(isset($interval->abcde));
9var_dump($interval->abcde);
10
11?>
12--EXPECTF--
13bool(false)
14bool(false)
15
16Warning: Undefined property: DateInterval::$abcde in %s on line %d
17NULL
18