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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: erikg at codepoet dot no
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Sep 19 02:00:01 2025 UTC