[PATCH] PDO uri invocation

From: Date: Wed, 12 Oct 2005 22:52:43 +0000
Subject: [PATCH] PDO uri invocation
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3100@lists.php.net to get a copy of this message
I ran across a problem when I issue a: try { $dbh = new PDO('uri:file:///path/to/file'); } catch (Exception $e) { die($e); } It will always generate an exception even if the file is really there. It appears that the function dsn_from_uri() is expecting a valid php wrapper uri, this patch should fix this problem. The patch file based on php5.1-cvs (works for pecl, php51 and HEAD) http://zirzow.dyndns.org/patches/pdo_dbh.fix_uri_invocation.php51.patch Curt.

« previous php.pecl.dev (#3100) next »