Bug #62508 [Opn->Csd]: Segfault while access a non-string property of DateInterval object

From: Date: Sun, 08 Jul 2012 16:28:20 +0000
Subject: Bug #62508 [Opn->Csd]: Segfault while access a non-string property of DateInterval object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171801@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62508&edit=1 ID: 62508 Updated by: laruence@php.net Reported by: laruence@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] laruence@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

« previous php.bugs (#171801) next »