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: 2021-06-09 11:26 UTC
Votes:1
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
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: iamzxt999 at qq dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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
 [2021-06-09 11:26 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-09 11:26 UTC] cmb@php.net
The memcached bug tracker is now on Github[1].  If this is still
an issue with the current memcached version, please report there.

[1] <https://github.com/php-memcached-dev/php-memcached/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC