PEAR is archived and read-only

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

Home » Database » DB_DataObject » Bug #33

createTables.php chokes on entries with the ! character

Details

Submitted2003-09-24 22:23 UTC
Fromthomas at unifiedconsulting dot com
StatusNo Feedback
PackageDB_DataObject
PHP Version4.3.2
OSLinux
Roadmaps(Not assigned)

Comments

[2003-09-24 22:23 UTC] thomas at unifiedconsulting dot com

Description:
------------
When specifying a MySQL password with the '!' character, createTables chokes.

Reproduce code:
---------------
Trying to specify that that MySQL user is foo with password 'bar!' using this configuration file:
[DB_DataObject]

database=mysql://foo:bar!@localhost/mydatabase
schema_location = dataObjects
class_location = dataObjects
require_prefix = DataObjects/
class_prefix = DataObjects_

[DB_DataObject_FormBuilder]
date_element_format = M-d-Y
db_date_format = 1

Expected result:
----------------
CreateTables should create the data objects

Actual result:
--------------
CreateTable gives the following error:
Warning: Error parsing ./myWebsite.config on line 3
in /usr/local/lib/php/DB/DataObject/createTables.php on line 34
CREATING FOR mysql://foo:bar
DB Error: connect failed