|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-11-29 14:09 UTC] alfredorj at walla dot com
  [2009-11-29 14:51 UTC] fa@php.net
  [2009-11-29 21:29 UTC] kelt3we at gmail dot com
  [2009-11-29 23:11 UTC] fa@php.net
  [2009-12-06 19:34 UTC] svn@php.net
  [2009-12-06 19:34 UTC] iliaa@php.net
  [2009-12-06 21:32 UTC] svn@php.net
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 18:00:02 2025 UTC | 
Description: ------------ There is no way to escape semicolon in dsn to be treated like a char, not as a separator. Reproduce code: --------------- <?php $pdo = new PDO('mysql:host=localhost;dbname=t\\;', 'user', 'pass'); ?> Expected result: ---------------- Successfully established connection Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000] [1049] Unknown database 't\'' in ./index.php:1 Stack trace: #0 ./index.php(1): PDO->__construct('mysql:host=loca...', 'user', 'pass') #1 {main} thrown in ./index.php on line 1