#21232 [NEW]: Unresolved references to PQsetnonblocking
| From: | floyd at studiodust dot com | Date: | Sat, 28 Dec 2002 04:41:35 +0000 |
| Subject: | #21232 [NEW]: Unresolved references to PQsetnonblocking | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-28531@lists.php.net to get a copy of this message | ||
From: floyd@studiodust.com
Operating system: RedHat Linux 6.2
PHP version: 4.3.0
PHP Bug Type: Compile Failure
Bug description: Unresolved references to PQsetnonblocking
I have verson 6.5.2 of Postgresql installed and have --with-pgsql on my
configure command line for PHP. Version 4.3.0 fails to compile
complaining
about unresolved references to the function, PQsetnonblocking.
I should probably upgrade my postgres installation but I decided to try
and resolve this problem with PHP.
I discovered that in ext/pgsql/pgsql.c the PQsetnonblocking function
is referred to using a macro, PQ_SETNONBLOCKING which is defined
to be 0 if HAVE_PQSETNONBLOCKING is set.
However, in the function php_pgsql_slush_query() in ext/pgsql/pgsql.c
the function PQsetnonblocking() is referred to using its real name
instead
of the macro: on lines 2838 and 2846. I edited thos two lines to use
the PQ_SETNONBLOCKING macro and now PHP compiles without error.
--
Edit bug report at http://bugs.php.net/?id=21232&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21232&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21232&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21232&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21232&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21232&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21232&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21232&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21232&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21232&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21232&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21232&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21232&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21232&r=isapi