source: src/router/php7/ext/date/tests/bug69587.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 361 bytes
Line 
1--TEST--
2Bug #69587 (DateInterval properties and isset)
3--FILE--
4<?php
5$datetime1 = new DateTime('2009-10-11');
6$datetime2 = new DateTime('2009-10-13');
7$interval = $datetime1->diff($datetime2);
8
9var_dump(property_exists($interval, 'm'), isset($interval->m), empty($interval->m), empty($interval->d));
10?>
11--EXPECT--
12bool(true)
13bool(true)
14bool(true)
15bool(false)
Note: See TracBrowser for help on using the repository browser.