|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58766 memcached nginx binary data problem
Submitted: 2009-07-17 06:24 UTC Modified: 2012-03-07 17:17 UTC
From: wwDevil at gmail dot com Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.2.6 OS: ubuntu 9.0.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: wwDevil at gmail dot com
New email:
PHP Version: OS:


 [2009-07-17 06:24 UTC] wwDevil at gmail dot com
Binary data saved in cache not reading from cache by nginx

Reproduce code:
$memDB = new Memcached();
$fp = fopen('png.png','r');
$data = fread($fp, filesize('png.png'));

nginx conf
location / {
    #all non static request in index.php. wdevil
    add_header    Content-Type  "image/png;";
    set             $memcached_key   "/test";
    memcached_pass  localhost:11211;

nginx response to browser binary data. no png binary.
If i replace Memcached --> Memcache class. All ok.

Expected result:
png img in browser


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-17 06:26 UTC] wwDevil at gmail dot com
Version 	1.0.0
libmemcached version 	0.31
Session support 	yes
igbinary support 	no
 [2009-07-17 12:44 UTC]
Try turning compression off.

$m->setOption(Memcached::OPT_COMPRESSION, false);
 [2012-03-07 17:17 UTC]
Closing because of age. Please try version 2.0.1 and reopen if this still occurs. 
Might have been due to compression being on.
 [2012-03-07 17:17 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrei
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 09:03:37 2021 UTC