|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43526 fixing warnings/errors in pgsql.c
Submitted: 2007-12-07 05:18 UTC Modified: 2009-11-02 13:33 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mi+php at aldan dot algebra dot com Assigned: iliaa (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.5 OS: FreeBSD/amd64
Private report: No CVE-ID: None
 [2007-12-07 05:18 UTC] mi+php at aldan dot algebra dot com
The pgsql.c extension fails to compile on a 64-bit system, when ``-Wall -Werror'' are enabled.

Some of the raised warnings point to likely programming mistakes, such as when a pointer is casted to int, which loses bits wherever void* is wider than int.

The patch at

fixes this. It requires the earlier submitted patch for zend_list functions, or else the pointer's bits will be truncated by the call to zend_list_find anyway.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-07 06:21 UTC] mi+php at aldan dot algebra dot com
Change the Summary to reflect the contents of /this/ bug report.
 [2009-11-02 13:33 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 09:01:27 2024 UTC