|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-05 02:08 UTC] tony2001@php.net
[2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ I can't make compression work in v1.3 (didn't try earlier versions).. :/ Whenever I store something compressed I get a null/false when I try to get it back... I have zlib-support enabled in PHP. Running PHP 5.0.2-dev (cvs). I've also tried with 5.0.1 but the same problem exists... Running memcached 1.1.11. Reproduce code: --------------- #!/usr/bin/php <?php $cache = memcache_connect('127.0.0.1', 11211); $x = array( "Testing ...", 1, 2, 3); echo gettype($x) . "\n"; print_r($x) . "\n"; $cache->set('testing', $x, MEMCACHE_COMPRESSED, 0); $x = $cache->get('testing'); echo gettype($x) . "\n"; print_r($x) ."\n"; Expected result: ---------------- array Array ( [0] => Testing ... [1] => 1 [2] => 2 [3] => 3 ) array Array ( [0] => Testing ... [1] => 1 [2] => 2 [3] => 3 ) Actual result: -------------- array Array ( [0] => Testing ... [1] => 1 [2] => 2 [3] => 3 ) boolean