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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jan 14 15:01:33 2025 UTC