|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-17 06:26 UTC] wwDevil at gmail dot com
[2009-07-17 12:44 UTC] andrei@php.net
[2012-03-07 17:17 UTC] andrei@php.net
[2012-03-07 17:17 UTC] andrei@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: andrei
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ Binary data saved in cache not reading from cache by nginx Reproduce code: --------------- $memDB = new Memcached(); $memDB->addServer('localhost',11211,50); $fp = fopen('png.png','r'); $data = fread($fp, filesize('png.png')); $memDB->set('/test',$data); 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