#43525 [Opn->Asn]: zend_list functions should take ulong IDs
| From: | tony2001@php.net | Date: | Tue, 29 Jan 2008 00:49:23 +0000 |
| Subject: | #43525 [Opn->Asn]: zend_list functions should take ulong IDs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121689@lists.php.net to get a copy of this message | ||
ID: 43525
Updated by: tony2001@php.net
Reported By: mi+php at aldan dot algebra dot com
-Status: Open
+Status: Assigned
Bug Type: Compile Warning
Operating System: FreeBSD/amd64
PHP Version: 5.2.5
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2007-12-07 05:13:38] mi+php at aldan dot algebra dot com
Description:
------------
The "id" variable in the zend_list family of functions should be ulong
(or uintptr_t, as pointers are often stored there). It already is ulong
in the underlying "workhorse" function zend_hash_index_find.
At least one spot -- in in pgsql.c -- makes an id from a pointer, which
leads to nasty occasional errors and httpd-/crashes/ on 64-bit
platforms.
Please, find the patch on
http://virtual-estates.com/~mi/port-stuff/patch-zend_list
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43525&edit=1