php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56185 Compression doesn't work...
Submitted: 2004-09-05 11:44 UTC Modified: 2013-02-18 00:35 UTC
From: tuxie at dekadance dot se Assigned:
Status: No Feedback Package: memcache (PECL)
PHP Version: Irrelevant OS: Linux (amd64)
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
5 - 1 = ?
Subscribe to this entry?

 
 [2004-09-05 11:44 UTC] tuxie at dekadance dot se
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-05 02:08 UTC] tony2001@php.net
I can't reproduce it, works fine here.
Could you plz try CVS version? If it still doesn't work for you - configure your PHP with --enable-debug & turn on memcache's debug with memcache_debug(true);
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 08:01:29 2024 UTC