php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59684 Unserializing FALSE differs from vanilla PHP unserialize
Submitted: 2011-03-24 11:20 UTC Modified: 2011-03-26 14:21 UTC
From: karsten at typo3 dot org Assigned: pajoye (profile)
Status: Closed Package: igbinary (PECL)
PHP Version: 5.3.5 OS:
Private report: No CVE-ID: None
 [2011-03-24 11:20 UTC] karsten at typo3 dot org
Description:
------------
When calling igbinary_unserialize(FALSE) the return value is not the same as when calling unserialize(FALSE) - which is pretty bad for a drop-in replacement.

Reproduce code:
---------------
<?php
var_dump(unserialize(FALSE));
var_dump(igbinary_unserialize(FALSE));
?>

Expected result:
----------------
bool(false)
bool(false)



Actual result:
--------------
bool(false)
NULL


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-26 05:45 UTC] pierre dot php at gmail dot com
Fixed in git.

Will close once I updated the tests igbinary_030.

However it will require to fix another bug #22617
 [2011-03-26 05:52 UTC] pierre dot php at gmail dot com
still have to fix that test but for another reason :)
 [2011-03-26 14:21 UTC] pierre dot php at gmail dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 05:01:31 2019 UTC