#43526 [Opn]: fixing warnings/errors in pgsql.c
| From: | mi+php at aldan dot algebra dot com | Date: | Fri, 07 Dec 2007 06:21:47 +0000 |
| Subject: | #43526 [Opn]: fixing warnings/errors in pgsql.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120446@lists.php.net to get a copy of this message | ||
ID: 43526
User updated by: mi+php at aldan dot algebra dot com
-Summary: zend_list functions should take ulong IDs
Reported By: mi+php at aldan dot algebra dot com
Status: Open
Bug Type: PostgreSQL related
Operating System: FreeBSD/amd64
PHP Version: 5.2.5
New Comment:
Change the Summary to reflect the contents of /this/ bug report.
Previous Comments:
------------------------------------------------------------------------
[2007-12-07 05:18:50] mi+php at aldan dot algebra dot com
Description:
------------
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
http://virtual-estates.com/~mi/port-stuff/patch-pgsql-64bit
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43526&edit=1