PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DBA_Relational » Bug #2051

no white spaces allowed in key values

Details

Submitted2004-08-04 10:25 UTC
Fromdasanm at cli dot di dot unipi dot it
StatusBogus
PackageDBA_Relational
PHP Version4.3.7
OSwindows 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)