php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21232 Unresolved references to PQsetnonblocking
Submitted: 2002-12-27 22:41 UTC Modified: 2003-03-09 01:58 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: floyd at studiodust dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
 [2002-12-27 22:41 UTC] floyd at studiodust dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-28 05:22 UTC] derick@php.net
Would you be able to prepare a patch for us (By doing "diff -U oldfilename.c newfilename.c)? Please send it as attachment to php-dev@lists.php.net.

Derick
 [2003-01-01 21:58 UTC] nathan at windsofstorm dot net
Same problem, same work fixed it. Note that it's php_pgsql_flush_query, not slush_query :)

--Nathan
 [2003-01-04 06:34 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch Floyd!
 [2003-03-08 13:35 UTC] khyri at idyllmtn dot com
Just downloaded PHP v4.3.1 (today) and had the same problem. Did the patch in the CVS get carried over to 4.3.1?
 [2003-03-09 01:58 UTC] magnus@php.net
Try reading NEWS file.
There are no bug fixes in 4.3.1. Only the security fix.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC