ID: 45682 Updated by: [email protected] Reported By: hannes dot magnusson at gmail dot com -Status: Assigned +Status: Closed Bug Type: Date/time related Operating System: * PHP Version: 5.3CVS-2008-11-11 Assigned To: derick New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-08-01 19:15:35] hannes dot magnusson at gmail dot com Description: ------------ The DateInterval does not seem to expose its properties to var_dump().. Reproduce code: --------------- bj...@lohan:~$ cat test.php <?php $date = new DateTime("28-July-2008"); $other = new DateTime("31-July-2008"); $diff = date_diff($date, $other); var_dump($diff); echo $diff, "\n"; bj...@lohan:~$ ~/php/5.3/sapi/cli/php test.php object(DateInterval)#3 (0) { } Catchable fatal error: Object of class DateInterval could not be converted to string in /crypto/bjori/test.php on line 9 Expected result: ---------------- The properties to retrieve the actual difference. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45682&edit=1
