|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58787 Memcached compression
Submitted: 2009-08-02 14:35 UTC Modified: 2012-03-07 17:18 UTC
From: matrix at alpha-force dot net Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.0RC4 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
39 + 40 = ?
Subscribe to this entry?

 [2009-08-02 14:35 UTC] matrix at alpha-force dot net

Whenever I want to set something in the Memcached that is longer than 100 chars, I get a "502 Bad Gateway" error from nginx web server. I have narrowed this down to transparent compression of data larger than 100 B. If I turn off the compression, the data stores normally.

Configure line for memcached:
 --enable-memcached \
--disable-memcached-session \

libmemcache is from debian repository.
libmemcached2  0.31-1

PHP 5.3.0 final was compiled with:
./configure \
--prefix=/opt/php \
--disable-libxml \
--disable-simplexml \
--disable-xml \
--disable-xmlreader \
--disable-xmlwriter \
--disable-dom \
--disable-ipv6 \
--without-iconv \
--disable-json \
--disable-pdo \
--disable-mbregex \
--disable-posix \
--disable-phar \
--enable-mbstring \
--enable-intl \
--without-pear \
--without-sqlite \
--without-sqlite3 \
--with-mysqli=mysqlnd \
--with-mcrypt=/usr/bin/mcrypt \


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-02 17:10 UTC] matrix at alpha-force dot net
The problem is solved by compiling PHP with zlib support (--with-zlib). Perhaps Memcached should check if zlib is enabled.
 [2012-03-07 17:18 UTC]
Closing because of age. Please try version 2.0.1 and reopen if this still occurs.
 [2012-03-07 17:18 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrei
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 19:01:31 2024 UTC