User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12pre) Gecko/20110211 Firefox/4.0b12pre Build Identifier: When using memcache in PHP, the compressed flag should be an integer, not a boolean. In some recent setups, when it's a boolean, PHP issue a warning error, which break the expected JSON output. This can be easily fixed by using the MEMCACHE_COMPRESSED constant. It seems this problem only appear with Memcache extension 3.0.3 and upper: http://pecl.php.net/package-info.php?package=memcache&version=3.0.3 Reproducible: Always Steps to Reproduce: 1. Install Firefox Sync PHP Server on Ubuntu 10.10 with default packages (php5, php5-memcache) 2. Get URL: http://example.com/firefox-sync/1.0/username/info/collections Actual Results: PHP issue a Warning error: The lowest two bytes of the flags array is reserved for pecl/memcache internal use Expected Results: PHP should not issue any warning.
Created attachment 512430 [details] [diff] [review] Patch replacing 'true' boolean with MEMCACHE_COMPRESSED constant
Comment on attachment 512430 [details] [diff] [review] Patch replacing 'true' boolean with MEMCACHE_COMPRESSED constant Looks good. I'll check it in