Edit report at https://bugs.php.net/bug.php?id=62508&edit=1

 ID:                 62508
 Updated by:         larue...@php.net
 Reported by:        larue...@php.net
 Summary:            Segfault while access a non-string property of
                     DateInterval object
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Date/time related
 PHP Version:        5.4.4
-Assigned To:        
+Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-07-08 16:22:05] larue...@php.net

Description:
------------
Segfault while access a non-string property of DateInterval object

Test script:
---------------
<?php
class Crasher extends DateInterval {
    public function __construct($time_spec) {
        parent::__construct($time_spec);
        var_dump($this->{2});
    }   
}   
$c = new Crasher("P2Y4DT6H8M");

Expected result:
----------------
NULL

Actual result:
--------------
core dump


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62508&edit=1

Reply via email to