mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
16 lines
361 B
PHP
16 lines
361 B
PHP
--TEST--
|
|
Bug #69587 (DateInterval properties and isset)
|
|
--FILE--
|
|
<?php
|
|
$datetime1 = new DateTime('2009-10-11');
|
|
$datetime2 = new DateTime('2009-10-13');
|
|
$interval = $datetime1->diff($datetime2);
|
|
|
|
var_dump(property_exists($interval, 'm'), isset($interval->m), empty($interval->m), empty($interval->d));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(false)
|