|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-30 16:01 UTC] andrei@php.net
[2011-07-05 23:59 UTC] nilsola at abc dot se
[2021-06-09 11:25 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-06-09 11:25 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ When trying to retrieve an array from Memcached the script freezes until it dies because of no more memory. ante@Bagheera:~/php-test$ nc localhost 11211 get a VALUE a 6 2 [] Everything works fine when using something different from an array, like an integer. Reproduce code: --------------- <?php $m = new Memcached; $m->addServer("localhost", 11211, 0); $m->setOption(Memcached::OPT_SERIALIZER, Memcached::SERIALIZER_JSON); $m->set("a", array()); var_dump($m->get("a")); Expected result: ---------------- array(0) { } Actual result: -------------- PHP Fatal error: Out of memory (allocated 628883456) (tried to allocate 2513135616 bytes) in /home/ante/php-test/m.php on line 6 PHP Stack trace: PHP 1. {main}() /home/ante/php-test/m.php:0 PHP 2. Memcached->get() /home/ante/php-test/m.php:6