php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57410 spaces are replaces by underscores in keys
Submitted: 2006-11-30 21:54 UTC Modified: 2007-02-13 18:04 UTC
From: evert at rooftopsolutions dot nl Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.0 RC4 OS: Debian 3.1
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:
Package:
Bug Type:
Summary:
From: evert at rooftopsolutions dot nl
New email:
PHP Version: OS:

 

 [2006-11-30 21:54 UTC] evert at rooftopsolutions dot nl
Description:
------------
Spaces are transformed into underscores.

This might first of all cause collisions.. But the biggest problem is that the replacement is done on a reference of the variable, while it should be a copy.

Reproduce code:
---------------
<?php

$q = "select field from table";

print   "key:$q\n";
memcache_get($server,$q);
print   "key:$q\n";

?>

Expected result:
----------------
key:select field from table
key:select field from table

Actual result:
--------------
key:select field from table
key:select_field_from_table

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-13 18:04 UTC] tony2001 at phpclub dot net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC