phpunit3 using PDO could not find driver postgres

This is a discussion on phpunit3 using PDO could not find driver postgres within the PHP Language forums, part of the PHP Programming Forums category; i have phpunit installed as on the site(http://www.phpunit.de/ pocket_guide/3.2/en/installation.html). im running ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-13-2007
kamiseq
 
Posts: n/a
Default phpunit3 using PDO could not find driver postgres

i have phpunit installed as on the site(http://www.phpunit.de/
pocket_guide/3.2/en/installation.html).

im running simple tests (that actually have been running on sqlite
base) and I got that silly error that PDO could not find a driver for
my postgresql db. that is it PDOEXception could not find driver and
nothing else.

I made a test and everything works fine when I am connecting from
simple php file to pgsql. there is no problem with driver, connection,
user, pass, inserts and selects. thats why i suppose that phpunit
causes errors.

does anyone have any idea how to fix that?
Reply With Quote
  #2 (permalink)  
Old 12-13-2007
kamiseq
 
Posts: n/a
Default Re: phpunit3 using PDO could not find driver postgres

ok so solution is to set system variable PHPRC to point to your
php.ini if your php.ini is in other location than PHP_HOME

take care
Reply With Quote
  #3 (permalink)  
Old 12-14-2007
Jerry Stuckle
 
Posts: n/a
Default Re: phpunit3 using PDO could not find driver postgres

kamiseq wrote:
> ok so solution is to set system variable PHPRC to point to your
> php.ini if your php.ini is in other location than PHP_HOME
>
> take care
>


That's one way. Another it just make sure the php.ini file the system
is using is the one you're changing.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0