php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46296 Odd behavior with pg_ functions
Submitted: 2008-10-15 04:22 UTC Modified: 2008-10-15 13:45 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: shadowblade989 at gmail dot com Assigned:
Status: Not a bug Package: PostgreSQL related
PHP Version: 5.2.6 OS: Ubuntu 8.04 (gnome)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shadowblade989 at gmail dot com
New email:
PHP Version: OS:

 

 [2008-10-15 04:22 UTC] shadowblade989 at gmail dot com
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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-15 13:45 UTC] felipe@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See http://br2.php.net/manual/en/install.unix.apache2.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 07:01:27 2024 UTC