PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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)