Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16144 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41710 invoked by uid 1010); 29 Apr 2005 17:54:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41378 invoked from network); 29 Apr 2005 17:54:28 -0000 Received: from unknown (HELO earthcam.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2005 17:54:28 -0000 X-Host-Fingerprint: 64.233.170.205 rproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.170.205:40124] helo=rproxy.gmail.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id DB/9D-20173-1D472724 for ; Fri, 29 Apr 2005 13:54:25 -0400 Received: by rproxy.gmail.com with SMTP id i8so544290rne for ; Fri, 29 Apr 2005 10:53:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QbaibN77kgs9OWOeTgNuBuK7gnDL66X4N0NVNNxTudPMOxwN571Bm/xo0N4SoFEJRf0KvEgvbuUOoqbrv+b/XnXgXLhtXLZSfKgNCPQqaNDOhMLQ7SCB5VXusBssRnegAG2PDqXRsnIFpFKP/wvFYfgdEz8CHPqE304yWVA56/g= Received: by 10.38.11.30 with SMTP id 30mr3819852rnk; Fri, 29 Apr 2005 10:53:40 -0700 (PDT) Received: by 10.38.65.30 with HTTP; Fri, 29 Apr 2005 10:53:40 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2005 13:53:40 -0400 Reply-To: Dan Scott To: php-dev In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Subject: Re: [PHP-DEV] help with backtrace/debuging From: denials@gmail.com (Dan Scott) On 4/29/05, Greg Donald wrote: > On 4/28/05, Dan Scott wrote: > > So three things: > > 1. If you print the results of get_loaded_extensions(), you'll see > > that pdo turns up as 'PDO', but you're looking for 'pdo' -- so the > > result of your first if() is FALSE. >=20 > Yup. Confusing that the base extension is PDO, but the drivers are > lowercase like pdo_mysql for example. I see what's going on now. That is not entirely true; PDO_ODBC, for example, comes up as "PDO_ODBC". Unfortunately I don't have mysql-devel installed so I can't confirm your report for PDO_MYSQL. > > 2. You then try loading pdo.so again, but it's already loaded by > > php.ini, therefore you get the Warning and your own error message. >=20 > Yup. :) >=20 > > 3. You plan on connecting to MySQL, but don't appear to have loaded > > pdo_mysql.so anywhere. So you need to fix that. >=20 > I didn't realize I had to build pdo_mysql.so seperately. Thanks. In > the manual where it says "The following drivers currently implement > the PDO interface:" made me thing I got them all when I built PDO. The manual also says (in the install instructions): "Follow the same steps to install and enable the PDO drivers of your choic= e." > Now that I got all that worked out MySQL refuses my dsn string: Sorry, can't help you there... Dan