php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57992 segfault when getting duplicate array values on 64-bit system
Submitted: 2008-01-05 19:47 UTC Modified: 2008-01-09 15:23 UTC
From: erikg at codepoet dot no Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.1 OS: ArchLinux
Private report: No CVE-ID: None
 [2008-01-05 19:47 UTC] erikg at codepoet dot no
Description:
------------
The following code causes a segfault on 64-bit systems, but not on 32-bit systems.

Setting a non-array value, or removing the duplicate "test" key in the $cache->get() call, fixes the problem.

Probably related to bug #12624

Reproduce code:
---------------
$cache = new Memcache;

$cache->connect("localhost", 11211);

$cache->set("test", array("test"));

var_dump($cache->get(array(
        "test",
        "test",
)));


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-09 15:23 UTC] mikael at synd dot info
This bug has been fixed in CVS.

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: Sat Apr 27 20:01:29 2024 UTC