Bug #55397 [NEW]: comparsion of incomplete DateTime causes SIGSEGV
| From: | ladislav at marek dot su | Date: | Thu, 11 Aug 2011 10:01:44 +0000 |
| Subject: | Bug #55397 [NEW]: comparsion of incomplete DateTime causes SIGSEGV | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-162509@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.3.7RC4
Package: Date/time related
Bug Type: Bug
Bug description:comparsion of incomplete DateTime causes SIGSEGV
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 bug report at https://bugs.php.net/bug.php?id=55397&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55397&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55397&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55397&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55397&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55397&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55397&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55397&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55397&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55397&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55397&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55397&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55397&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55397&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55397&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55397&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55397&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55397&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55397&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55397&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55397&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55397&r=mysqlcfg