1--TEST-- 2Test isset on DatePeriod instantiated without its constructor 3--FILE-- 4<?php 5 6class MyDatePeriod extends DatePeriod { 7 public int $my; 8} 9 10$rc = new ReflectionClass('MyDatePeriod'); 11$di = $rc->newInstanceWithoutConstructor(); 12 13var_dump(isset($di->start)); 14var_dump(empty($di->start)); 15var_dump(property_exists($di, "start")); 16 17var_dump(isset($di->recurrences)); 18var_dump(empty($di->recurrences)); 19var_dump(property_exists($di, "recurrences")); 20 21var_dump(isset($di->end)); 22var_dump(empty($di->end)); 23var_dump(property_exists($di, "end")); 24 25var_dump(isset($di->my)); 26var_dump(empty($di->my)); 27var_dump(property_exists($di, "my")); 28 29?> 30--EXPECT-- 31bool(false) 32bool(true) 33bool(true) 34bool(false) 35bool(true) 36bool(true) 37bool(false) 38bool(true) 39bool(true) 40bool(false) 41bool(true) 42bool(true) 43