Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52059 invoked by uid 1010); 27 Apr 2006 15:09:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52044 invoked from network); 27 Apr 2006 15:09:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2006 15:09:35 -0000 X-PHP-List-Original-Sender: kevin@oceania.net X-Host-Fingerprint: 64.251.31.245 unknown Received: from ([64.251.31.245:43261] helo=swamp.oceania.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AC/B3-11022-FAED0544 for ; Thu, 27 Apr 2006 11:09:35 -0400 Received: from kevin.oceania.net (dialup-116.224.221.203.acc52-kent-syd.comindico.com.au [203.221.224.116]) by swamp.oceania.net (8.13.4/8.13.1) with SMTP id k3RE7bfi004500 for ; Fri, 28 Apr 2006 00:07:38 +1000 Date: Fri, 28 Apr 2006 01:43:07 +1000 To: internals@lists.php.net Message-ID: <20060428014307.7c1dd08d.kevin@oceania.net> Organization: Oceania X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Inconsistancy in PDO dsn From: kevin@oceania.net (Kevin Waterson) Not a bug, but inconsistant behavior in PDO when calling $dsn = new PDO("sqlite: dbname.sdb"); The space after the colon _should_ be encoded but if not it fails and needs correctly to read $dsn = new PDO("sqlite:dbname.sdb"); Pierre pointed to a user note in the manual http://www.php.net/manual/en/ref.pdo.php 01-Jan-2006 04:09 Watch out for putting spaces in the DSN mysql:host=localhost;dbname=test works mysql: host = localhost; dbname=test works mysql: host = localhost; dbname = test doesn't work... Here we see the inconsistancy at work. perhaps E_STRICT would be a better way to handle this perhaps some other. Kind regards Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote."