|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59703 Bug at function add, set and so on
Submitted: 2011-04-07 01:23 UTC Modified: 2021-06-09 11:26 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: iamzxt999 at qq dot com Assigned: cmb (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.2.10 OS: ubuntu
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:
Solve the problem:
48 + 44 = ?
Subscribe to this entry?

 [2011-04-07 01:23 UTC] iamzxt999 at qq dot com
when i compile memcached with -enable-memcached-igbinary, if 
the second parameter of function set is an array which has 
more than 3 elements, the php script will die. The same thing 
happen on function add.

Reproduce code:
try {
$mem = new Memcached();
$mem->addServer('localhost', 12000);
$mem->set('abc', array(1, 2, 3, 4, 5));


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-07 01:34 UTC] iamzxt999 at qq dot com
the Reproduce code has some error, the right is:
$mem = new Memcached();
$mem->addServer('localhost', 12000);
$mem->set('abc', array(1, 2, 3, 4, 5));

and i'm sorry my english is not so good, so i can just 
descript what the problem is.
 [2011-04-07 02:10 UTC] iamzxt999 at qq dot com
i found the cause: there is not the file php_json.h in the dir 
$php/include/php/json.   $php is the dir where php is 
 [2021-06-09 11:26 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-09 11:26 UTC]
The memcached bug tracker is now on Github[1].  If this is still
an issue with the current memcached version, please report there.

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 04:01:29 2024 UTC