php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55397 comparsion of incomplete DateTime causes SIGSEGV
Submitted: 2011-08-11 10:01 UTC Modified: 2011-08-14 16:13 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: ladislav at marek dot su Assigned: derick
Status: Closed Package: Date/time related
PHP Version: 5.3.7RC4 OS: Linux
Private report: No CVE-ID:
 [2011-08-11 10:01 UTC] 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

Patches

bug55397.phpt (last revision 2011-08-14 16:37 UTC) by laruence@php.net)
bug55397.diff (last revision 2011-08-14 16:37 UTC) by laruence@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-14 15:52 UTC] laruence@php.net
-Status: Open +Status: Analyzed
 [2011-08-14 16:09 UTC] 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-14 16:09 UTC] 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:13 UTC] laruence@php.net
-Assigned To: +Assigned To: derick
 [2011-08-14 16:36 UTC] 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:37 UTC] 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:37 UTC] laruence@php.net
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
 [2011-08-14 16:37 UTC] laruence@php.net
The following patch has been added/updated:

Patch Name: bug55397.phpt
Revision:   1313339873
URL:        https://bugs.php.net/patch-display.php?bug=55397&patch=bug55397.phpt&revision=1313339873
 [2011-08-14 16:39 UTC] laruence@php.net
As Derick's advice, I added a WARNING msg, but my english is poor, so the mes need to be tweaked into a good one.
 [2013-01-06 15:08 UTC] derick@php.net
-Status: Analyzed +Status: Closed
 [2013-01-06 15:08 UTC] derick@php.net
Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff9c1b12ff9c9533367d0d6200eb39189ad0124c
Log: Fixed bug #55397: Comparsion of incomplete DateTime causes SIGSEGV.
 [2013-01-06 15:10 UTC] derick@php.net
Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff9c1b12ff9c9533367d0d6200eb39189ad0124c
Log: Fixed bug #55397: Comparsion of incomplete DateTime causes SIGSEGV.
 [2013-01-12 16:39 UTC] derick@php.net
Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff9c1b12ff9c9533367d0d6200eb39189ad0124c
Log: Fixed bug #55397: Comparsion of incomplete DateTime causes SIGSEGV.
 [2013-03-01 18:32 UTC] stas@php.net
Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff9c1b12ff9c9533367d0d6200eb39189ad0124c
Log: Fixed bug #55397: Comparsion of incomplete DateTime causes SIGSEGV.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 15:01:54 2014 UTC