Home » Database » DBA_Relational » Bug #2051
no white spaces allowed in key values
Details
| Submitted | 2004-08-04 10:25 UTC |
|---|---|
| From | dasanm at cli dot di dot unipi dot it |
| Status | Bogus |
| Package | DBA_Relational |
| PHP Version | 4.3.7 |
| OS | windows xp |
| Roadmaps | (Not assigned) |
Comments
[2004-08-04 10:25 UTC] dasanm at cli dot di dot unipi dot it
Description:
------------
if trying to add a couple as,for example, "hello world"=>"my world" to a DBA database,here's what
is recorded:
"hello"=>"my world" instead of "hello world"=>"my world"
so,to say it briefly,when using a string value as a key,everything after a white space is lost
Reproduce code:
---------------
require_once ("DBA/Compatibility.php");
$db = dba_open("mydb","n","db3");
dba_replace("hello world","my world",$db);
echo dba_fetch("hello world",$db);
dba_close($db);
Expected result:
----------------
my world
Actual result:
--------------
Object
(because the key "hello" has no associated value)