|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-06-04 02:26 UTC] james_w_thornton at baylor dot edu
./configure \ --with-mysql=/usr/local --with-apxs \ --with-aolserver=/usr/local/aolserver \ --with-openssl --enable-ftp --with-imap-ssl \ --with-oci8 --enable-sigchild \ --with-pgsql=/usr/local/pgsql --enable-trans-sid \ --with-regex=PHP ---//--- (error happens in both 4.0.5 and 4.0.6RC2) Making all in pgsql make[2]: Entering directory `/usr/local/src/php-4.0.6RC2/ext/pgsql' make[3]: Entering directory `/usr/local/src/php-4.0.6RC2/ext/pgsql' /bin/sh /usr/local/src/php-4.0.6RC2/libtool --silent --mode=compile gcc -I. -I/usr/local/src/php-4.0.6RC2/ext/pgsql -I/usr/local/src/php-4.0.6RC2/main -I/usr/local/src/php-4.0.6RC2 -I/usr/local/aolserver/include -I/usr/include/apache -I/usr/local/src/php-4.0.6RC2/Zend -I/usr/local/ssl/include -I/usr/local/src/php-4.0.6RC2/ext/mysql/libmysql -I/ora8/m01/app/oracle/product/8.1.7/rdbms/public -I/ora8/m01/app/oracle/product/8.1.7/rdbms/demo -I/usr/local/src/php-4.0.6RC2/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.6RC2/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6RC2/TSRM -I/usr/local/pgsql/include -DLINUX=2 -DEAPI -DUSE_EXPAT -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -DTHREAD=1 -g -O2 -pthread -c pgsql.c pgsql.c: In function `php_if_pg_last_notice': pgsql.c:889: `pgsql_globals' undeclared (first use in this function) pgsql.c:889: (Each undeclared identifier is reported only once pgsql.c:889: for each function it appears in.) make[3]: *** [pgsql.lo] Error 1 make[3]: Leaving directory `/usr/local/src/php-4.0.6RC2/ext/pgsql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.0.6RC2/ext/pgsql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.6RC2/ext' make: *** [all-recursive] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 08:00:02 2025 UTC |
Jani - thanks for the patch. It fixed it, but for some reason it would not apply (I changed it manually). NOTE: if you need to use it, if fixes ext/pgsql/pgsql.c in the 4.0.6RC2 release, not 4.0.5. Index: pgsql.c =================================================================== RCS file: /repository/php4/ext/pgsql/pgsql.c,v retrieving revision 1.102.2.2 diff -u -r1.102.2.2 pgsql.c --- pgsql.c 2001/05/27 23:27:10 1.102.2.2 +++ pgsql.c 2001/06/04 07:37:34 @@ -885,7 +885,10 @@ /* {{{ proto int pg_last_notice(int connection) Returns the last notice set by the backend */ -PHP_FUNCTION(pg_last_notice) { +PHP_FUNCTION(pg_last_notice) +{ + PGLS_FETCH(); + if (PGG(last_notice) == NULL) { RETURN_FALSE; } else {Jani - thanks for the patch. It fixed it, but for some reason it would not apply (I changed it manually). NOTE: if you need to use it, if fixes ext/pgsql/pgsql.c in the 4.0.6RC2 release, not 4.0.5. Index: pgsql.c =================================================================== RCS file: /repository/php4/ext/pgsql/pgsql.c,v retrieving revision 1.102.2.2 diff -u -r1.102.2.2 pgsql.c --- pgsql.c 2001/05/27 23:27:10 1.102.2.2 +++ pgsql.c 2001/06/04 07:37:34 @@ -885,7 +885,10 @@ /* {{{ proto int pg_last_notice(int connection) Returns the last notice set by the backend */ -PHP_FUNCTION(pg_last_notice) { +PHP_FUNCTION(pg_last_notice) +{ + PGLS_FETCH(); + if (PGG(last_notice) == NULL) { RETURN_FALSE; } else {