Bug #55397 [PATCH]: comparsion of incomplete DateTime causes SIGSEGV
| From: | laruence@php.net | Date: | Sun, 14 Aug 2011 16:37:26 +0000 |
| Subject: | Bug #55397 [PATCH]: comparsion of incomplete DateTime causes SIGSEGV | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162577@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55397&edit=1
ID: 55397
Patch added by: laruence@php.net
Reported by: ladislav at marek dot su
Summary: comparsion of incomplete DateTime causes SIGSEGV
Status: Analyzed
Type: Bug
Package: Date/time related
Operating System: Linux
PHP Version: 5.3.7RC4
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: bug55397.diff
Revision: 1313339846
URL: https://bugs.php.net/patch-display.php?bug=55397&patch=bug55397.diff&revision=1313339846
Previous Comments:
------------------------------------------------------------------------
[2011-08-14 16:37:16] laruence@php.net
The following patch has been added/updated:
Patch Name: bug55397.diff
Revision: 1313339836
URL: https://bugs.php.net/patch-display.php?bug=55397&patch=bug55397.diff&revision=1313339836
------------------------------------------------------------------------
[2011-08-14 16:36:41] laruence@php.net
The following patch has been added/updated:
Patch Name: bug55397.diff
Revision: 1313339801
URL: https://bugs.php.net/patch-display.php?bug=55397&patch=bug55397.diff&revision=1313339801
------------------------------------------------------------------------
[2011-08-14 16:09:38] laruence@php.net
The following patch has been added/updated:
Patch Name: bug55397.phpt
Revision: 1313338178
URL: https://bugs.php.net/patch-display.php?bug=55397&patch=bug55397.phpt&revision=1313338178
------------------------------------------------------------------------
[2011-08-14 16:09:23] laruence@php.net
The following patch has been added/updated:
Patch Name: bug55397.diff
Revision: 1313338163
URL: https://bugs.php.net/patch-display.php?bug=55397&patch=bug55397.diff&revision=1313338163
------------------------------------------------------------------------
[2011-08-11 10:01:44] ladislav at marek dot su
Description:
------------
PHP ends with SIGSEGV when comparing incompletely unserialized DateTime.
Test script:
---------------
date_default_timezone_set('Europe/Prague');
var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime);
Expected result:
----------------
bool(false)
Actual result:
--------------
SIGSEGV
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55397&edit=1