Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27326 invoked by uid 1010); 28 Apr 2006 00:19:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27311 invoked from network); 28 Apr 2006 00:19:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Apr 2006 00:19:11 -0000 X-PHP-List-Original-Sender: kingwez@gmail.com X-Host-Fingerprint: 64.233.166.180 pproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.166.180:51776] helo=pproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FE/0B-11022-F7F51544 for ; Thu, 27 Apr 2006 20:19:11 -0400 Received: by pproxy.gmail.com with SMTP id 57so2349273pya for ; Thu, 27 Apr 2006 17:19:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uGX5NyHgBGMyRlK1IxZAci5Cg0b+Nmjj3E0RIYJGd4wbAPJrJJnqRRiDlfOlnbSlSZCc0iEEkX401tolwjLAkpe8kiHpTSuX0GIocKFQoDgSHlG4wAjZ7EQ+rjUF8V8uyZjBw5rHD1o/4DxVgcQFm7fRf/ULlTu1Za5q48qwg3Y= Received: by 10.35.113.12 with SMTP id q12mr1214269pym; Thu, 27 Apr 2006 17:19:06 -0700 (PDT) Received: by 10.35.41.17 with HTTP; Thu, 27 Apr 2006 17:19:06 -0700 (PDT) Message-ID: <4e89b4260604271719x61c2cff4y1a8306b2dfbd2f0f@mail.gmail.com> Date: Thu, 27 Apr 2006 20:19:06 -0400 To: "Kevin Waterson" Cc: internals@lists.php.net In-Reply-To: <20060428014307.7c1dd08d.kevin@oceania.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428014307.7c1dd08d.kevin@oceania.net> Subject: Re: [PHP-DEV] Inconsistancy in PDO dsn From: kingwez@gmail.com ("Wez Furlong") The manual doesn't tell you that you can use spaces, so simply don't do it. --Wez. On 4/27/06, Kevin Waterson wrote: > Not a bug, but inconsistant behavior in PDO when calling > $dsn =3D new PDO("sqlite: dbname.sdb"); > > The space after the colon _should_ be encoded but if not it fails and > needs correctly to read > $dsn =3D 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=3Dlocalhost;dbname=3Dtest works > mysql: host =3D localhost; dbname=3Dtest works > mysql: host =3D localhost; dbname =3D 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." > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >