|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-11-05 20:39 UTC] eric at ericstern dot com
[2015-11-05 21:54 UTC] fabian at tag1consulting dot com
[2015-11-05 21:56 UTC] fabian at tag1consulting dot com
[2015-11-06 08:40 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2015-11-06 08:40 UTC] laruence@php.net
[2015-11-06 19:38 UTC] rasmus@php.net
[2015-11-06 19:50 UTC] eric at ericstern dot com
-Status: Feedback
+Status: Open
[2015-11-06 19:50 UTC] eric at ericstern dot com
[2015-11-06 20:37 UTC] nikic@php.net
[2015-11-06 20:50 UTC] eric at ericstern dot com
-Status: Open
+Status: Closed
[2015-11-06 20:50 UTC] eric at ericstern dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 18:00:01 2025 UTC |
Description: ------------ Instantiating a DateTime object in a constructor causes an engine crash, printing either "Segmentation Fault" or "zend_mm_heap corrupted". This only seems to happen in Centos7 with PHP7RC6 installed from the Webtatic-Testing repo; I can NOT reproduce it on OS X using the same version installed via homebrew. In that environment, I have disabled all extensions by renaming /etc/php.d to /etc/php.d.disabled and the crash still occurs. Originally found under nginx/php-fpm, but happens under cli as well. I can privately provide access to the server which reproduces this if helpful. Test script: --------------- <?php class X { private $date; public function __construct() { $this->date = new DateTime(); } } $x = new X(); var_dump($x); Expected result: ---------------- object(X)#1 (1) { ["date":"X":private]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 20:24:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } } (exit 0) Actual result: -------------- object(X)#1 (1) { ["date":"X":private]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-05 20:31:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } } Segmentation fault (exit 139)