Req #5270 [Asn->Fbk]: PEAR::DB: escaping in DSNs
| From: | danielc@php.net | Date: | Sun, 23 Oct 2005 15:49:05 +0000 |
| Subject: | Req #5270 [Asn->Fbk]: PEAR::DB: escaping in DSNs | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-7057@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=5270&edit=1
ID: 5270
Updated by: danielc@php.net
Reported By: john at curioussymbols dot com
-Status: Assigned
+Status: Feedback
Id: 5270
Type: Feature/Change Request
Package: Documentation
Operating System: FC3
PHP Version: 4.3.11
Assigned To: danielc
New Comment:
Why? There are only a few characters that cause interpretation
problems and they're stated in the manual page you cite. Passing the
DSN component values through a PHP function such as rawurlencode()
would add overhead for no reason.
Previous Comments:
------------------------------------------------------------------------
[2005-10-21 16:55:46] mj at php dot net
assigning this to Daniel, because he is the DB-documentation-ninja.
------------------------------------------------------------------------
[2005-09-01 12:03:12] john at curioussymbols dot com
Description:
------------
In
http://pear.php.net/manual/en/package.database.db.intro-dsn.php
it would be helpful if a method for
" If your database, option values, username or password contain
characters used to delineate DSN parts, you can escape them via URI hex
encodings"
were explicitly cited. Am I to assume that if I urlencode() these parts
of my DSN then everything will be OK?
Cheers
JP
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=5270&edit=1