From: shadowblade989 at gmail dot com Operating system: Ubuntu 8.04 (gnome) PHP version: 5.2.6 PHP Bug Type: PostgreSQL related Bug description: Odd behavior with pg_ functions
Description: ------------ I have a large project that I'm converting from a fully working mysql setup to use pgSQL. I've installed PostgreSQL version 8.3.3 and rebuilt PHP using the following config: ./configure --with-pgsql=/usr/local/pgsql After everything appeared to successfully install, I went to test my project and all of my pg_ functions return: Fatal error: Call to undefined function pg_*() in.... (obviously where * is the rest of the function - its the same for all of them) However, I tried to run a pg function from the command line using php -r and they work as expected (i.e. php -r "pg_connect('host=localhost');" returns an error saying there is no password, rather than an undefined function) I've tried several php snapshots and they all have similar or equal behavior. (my current one is still the release of 5.2.6 as stated) -- Edit bug report at http://bugs.php.net/?id=46296&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46296&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46296&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46296&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46296&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46296&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46296&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46296&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46296&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46296&r=support Expected behavior: http://bugs.php.net/fix.php?id=46296&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46296&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46296&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46296&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46296&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46296&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46296&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46296&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46296&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46296&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46296&r=mysqlcfg