#50323 [Opn->Csd]: No ability to connect to database named 't;', no chance to escape semicolon
| From: | iliaa@php.net | Date: | Sun, 06 Dec 2009 19:34:36 +0000 |
| Subject: | #50323 [Opn->Csd]: No ability to connect to database named 't;', no chance to escape semicolon | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145459@lists.php.net to get a copy of this message | ||
ID: 50323
Updated by: iliaa@php.net
Reported By: winner5 at interia dot pl
-Status: Open
+Status: Closed
Bug Type: PDO related
Operating System: Linux
PHP Version: 5.3.1
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-12-06 19:34:13] svn@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=291775
Log: Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN).
------------------------------------------------------------------------
[2009-11-29 23:11:53] fa@php.net
Yes, I'm terribly sorry.
To be more on-topic then, afaik SQLite doesn't even allow ';' as part
of either database or table name, so I was under the impression mysql
wasn't either.
Verified on 5.2.6-1+lenny3
Problem seems to lie somewhere in ext/pdo/pdo_dbh.c in dbh_constructor
fwiw.
------------------------------------------------------------------------
[2009-11-29 21:29:20] kelt3we at gmail dot com
This is by no means a proper way to provide feedback to a bug report,
even if the user's claim is wrong. Next time remember this is not a
humor site ;-)
------------------------------------------------------------------------
[2009-11-29 14:51:23] fa@php.net
IBTB (In before the bogus):
http://xkcd.com/327/
------------------------------------------------------------------------
[2009-11-29 14:09:18] alfredorj at walla dot com
Why do you don't go to see if I'm on the corner?
This bug is not a bug! Who does make a database with ";" chars?
You are a really loser.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50323
--
Edit this bug report at http://bugs.php.net/?id=50323&edit=1