Re: Some undefined function errors
| From: | Fernando | Date: | Thu, 20 May 2010 17:14:41 +0000 |
| Subject: | Re: Some undefined function errors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305370@lists.php.net to get a copy of this message | ||
So php is loading pg. How are you calling these functions? Can you connect or does pg_connect() gives the same error?
On 20/05/2010 12:10, Giancarlo Boaron wrote:
Yes. Phpinfo() tells me it's ok: pgsql PostgreSQL Support enabled PostgreSQL(libpq) Version 8.4.4 Multibyte character support disabled SSL support enabled Active Persistent Links 0 Active Links 0 Directive Local Value Master Value pgsql.allow_persistent On On pgsql.auto_reset_persistent Off Off pgsql.ignore_notice Off Off pgsql.log_notice Off Off pgsql.max_links Unlimited Unlimited pgsql.max_persistent Unlimited Unlimited My PHP version is 5.3.2. My PostgreSQL version is 8.4.4 and I'm running the server under the restrict 'postgres' user privileges since I can't run the daemon process as 'root'. Thank you for some help. --- Em qui, 20/5/10, Fernando<fernando@ggtours.ca> escreveu:De: Fernando<fernando@ggtours.ca> Assunto: Re: [PHP] Some undefined function errors Para: php-general@lists.php.net Data: Quinta-feira, 20 de Maio de 2010, 12:23 Sorry I miss read the question. It does seem that php is not picking up the pg module and cannot find the functions. I assume Postgresql is in fact installed at /usr/local/pgsql. If you run phpinfo(); can you see that PG is installed? On 20/05/2010 10:46, Giancarlo Boaron wrote:stored procedures.I make the function call in a php file. I'm not using**If I create an empty php file and put only some ofthese functions,Apache reports de 'call to undefined function XXX'. --- Em *qui, 20/5/10, Fernando /<fernando@ggtours.ca>/*escreveu:De: Fernando<fernando@ggtours.ca> Assunto: Re: [GENERAL] [PHP]Some undefined function errorsPara: pgsql-general@postgresql.org Data: Quinta-feira, 20 de Maiode 2010, 11:25Are you calling storeprocedures that return cursors? I had thisproblem with cursors becausethe transaction gets committed andthe cursor closed after theyreturn. Mind you I had the problemon .NET using npgsql, so Imight be way off.CheersBoaron wrote:On 20/05/2010 10:05, Giancarloabout the problem I was having with some Postgres functions that when those functions were called, I received the following error: "Call to undefined function<function_name>".Hi all.Recently, I wrote an emailApache + PHP + Postgres, but I still get this annoying error messege with some functions like pg_prepare() and pg_escape_string().decided to rebuild a brand new linux virtual machine withAfter some answers, I--with-pgsql=/usr/local/pgsql/--without-readline option.I compiled Postgres with--with-apxs2=/usr/local/apache2/bin/apxs andI compiled PHP withdo I have to change?process has no errors.And the compilationI have to change something in php_config.h file? If so, whatWhat am I doing wrong? DoThank you.