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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 + 44 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC