Undefined function pg_escape_bytea() despite good PG version

From: Thomas Woerly <yorgat(at)yahoo(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: Undefined function pg_escape_bytea() despite good PG version
Date: 2007-03-07 09:36:06
Message-ID: 397592.36072.qm@web52901.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hello PGsql list people !

My first message on this list.

I am installing a collaborative platform using Apache2.0.59 / PHP4.4.2 and
Postgre 7.4.14

Everthinh works fine in the creation of tables until this for one table :

Call to undefined function: pg_escape_bytea()
in/home/demo/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php on line 407

When searching the Web, some say it is due a bad version of PostgreSQL, since
pg_escape_bytea() arrived at v.7.2.

My Webmin and pg_config --version say I have a 7.4.14 version.

I compiled PHP with this
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-dbase
--with-filepro --enable-exif --with-xml --enable-ftp --with-db --enable-bcmath
--enable-calendar --with-jpeg-dir --with-png-dir --with-gd
--enable-gd-native-ttf --with-freetype-dir --with-gettext --with-mysql
--with-zlib-dir --enable-trans-sid --with-imap --with-kerberos --with-imap-ssl
--with-openssl --enable-sysvsem --enable-sysvshm --with-gettext --with-dom
--with-mcrypt --with-iconv --enable-mbstring=all --enable-mbregex --with-gd
--with-png-dir=/usr --with-jpeg-dir=/usr
--with-mime-magic=/usr/share/magic.mime
--with-pgsql=/usr/locla/pgsql/bin/pg_config

More info :
I have the libphp4.so in modules of apache server and the correct
LoadModule php4_module modules/libphp4.so

My phpinfo() shows a pgsql section but does not show the version

Does anyone know how to tackle this ?

Thanks for reading my request.

Greetings
Thomas



___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Mario Guenterberg 2007-03-07 10:28:17 Re: Undefined function pg_escape_bytea() despite good PG version
Previous Message mikie 2007-03-05 15:16:56 Re: transactions from PHP - double COMMIT required?