|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-09-13 18:39 UTC] swelch at saferack dot com
Description:
------------
gcc 4.6.3
Memcache 2.2.7
Very little changes made to php.ini that shouldn't effect issue.
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-freetype-
dir=/usr/include/freetype2/freetype' '--with-jpeg-dir=/usr/include' '--with-xsl'
'--with-zlib' '--enable-sockets' '--with-openssl' '--with-mysql' '--with-mcrypt'
'--enable-mbstring' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-
gd' '--with-bz2' '--enable-exif' '--enable-ftp' '--with-gettext' '--with-mhash'
'--with-mysqli' '--enable-soap' '--enable-wddx' '--enable-zip' '--with-pdo-
mysql' '--with-gmp' '--enable-shmop'
Memcache does not seem to be storing an empty array. I know this may not seem
needed but I'm storing response from an API that is turned into an array. A
valid response may be empty which I would like to store.
Test script:
---------------
$mem = new Memcache();
$emptyarr = array();
$mem->add('ABCDEF12345', $emptyarr, true, 1800);
// $mem->get('ABCDEF12345') == false
Expected result:
----------------
Should return an empty array.
$mem->get('ABCDEF12345') == array();
Actual result:
--------------
Getting false.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
What do you get with this code? $mem = new Memcache(); $emptyarr = array(); $mem->add('ABCDEF12345', $emptyarr, true, 1800); var_dump($mem->get('ABCDEF12345'));