RE : ezmlm response

RE : ezmlm response

am 06.03.2007 18:17:27 von Thomas Woerly

Hello People

My first message on this list.

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

I have the following error

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 recompiled 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

And I still get the message above. Any idea how to tackle this ?

Thanks for reading my request.

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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: pg_escape_bytea missing

am 07.03.2007 02:23:29 von dmagick

> 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.

Firstly please use a more appropriate subject ;) It lets people quickly
know if they can help or not.

Does a phpinfo() page show postgres support working (ie is there a big
section called "postgresql") ?

Specifically what version of php are you using? This function came in at
4.2.0+

http://php.net/pg_escape_bytea

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE : Re: [PHP-DB] pg_escape_bytea missing despite Postgre v.7.4.14

am 07.03.2007 03:03:26 von Thomas Woerly

Hello,

Thanks for you reply. Yeah, sorry for the subjet, wrong manipulation from me.

With a phpinfo(), I have pgsql section. Is it ok ? My version of PHP is 4.4.2,
so this is ok too.

pgsql

PostgreSQL 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



--- Chris a écrit :

>
> > 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.
>
> Firstly please use a more appropriate subject ;) It lets people quickly
> know if they can help or not.
>
> Does a phpinfo() page show postgres support working (ie is there a big
> section called "postgresql") ?
>
> Specifically what version of php are you using? This function came in at
> 4.2.0+
>
> http://php.net/pg_escape_bytea
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>






____________________________________________________________ _______________
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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE : Re: [PHP-DB] pg_escape_bytea missing despite Postgre v.7.4.14

am 07.03.2007 03:07:37 von dmagick

Thomas Woerly wrote:
> Hello,
>
> Thanks for you reply. Yeah, sorry for the subjet, wrong manipulation from me.
>
> With a phpinfo(), I have pgsql section. Is it ok ? My version of PHP is 4.4.2,
> so this is ok too.
>
> pgsql
>
> PostgreSQL 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

That looks fine. Does it give you a postgres version number there too?

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE : [PHP-DB] Re: RE : Re: [PHP-DB] pg_escape_bytea missing despite Postgre v.7.4.14

am 07.03.2007 09:41:59 von Thomas Woerly

Not at all. No version number for Postgres there.

--- Chris a écrit :

> Thomas Woerly wrote:
> > Hello,
> >
> > Thanks for you reply. Yeah, sorry for the subjet, wrong manipulation from
> me.
> >
> > With a phpinfo(), I have pgsql section. Is it ok ? My version of PHP is
> 4.4.2,
> > so this is ok too.
> >
> > pgsql
> >
> > PostgreSQL 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
>
> That looks fine. Does it give you a postgres version number there too?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>






____________________________________________________________ _______________
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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php