Re: help with backtrace/debuging

From: Date: Fri, 29 Apr 2005 17:53:40 +0000
Subject: Re: help with backtrace/debuging
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-16144@lists.php.net to get a copy of this message
On 4/29/05, Greg Donald <destiney@gmail.com> wrote: > On 4/28/05, Dan Scott <denials@gmail.com> 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. > > 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. > > Yup. :) > > > 3. You plan on connecting to MySQL, but don't appear to have loaded > > pdo_mysql.so anywhere. So you need to fix that. > > 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 choice." > Now that I got all that worked out MySQL refuses my dsn string: Sorry, can't help you there... Dan

« previous php.internals (#16144) next »