php.net |  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: 2011-04-07 02:10 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: iamzxt999 at qq dot com Assigned:
Status: Open 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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 11 = ?
Subscribe to this entry?

 
 [2011-04-07 01:23 UTC] iamzxt999 at qq dot com
Description:
------------
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:
---------------
<?php
try {
$mem = new Memcached();
$mem->addServer('localhost', 12000);
$mem->set('abc', array(1, 2, 3, 4, 5));
print_r($mem->get('abc'));
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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));
print_r($mem->get('abc'));

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 
installed
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Dec 16 02:01:24 2019 UTC