#49757 [Opn->Csd]: long2ip can return wrong value in a multi-threaded application
| From: | iliaa@php.net | Date: | Mon, 05 Oct 2009 14:46:02 +0000 |
| Subject: | #49757 [Opn->Csd]: long2ip can return wrong value in a multi-threaded application | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143278@lists.php.net to get a copy of this message | ||
ID: 49757
Updated by: iliaa@php.net
Reported By: sg at efficientip dot com
-Status: Open
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: FreeBSD 7.2
PHP Version: 5.2.11
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-10-05 14:45:54] svn@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=289216
Log: Fixed bug #49757 (long2ip() can return wrong value in a
multi-threaded applications).
# original patch by Florian Anderiasch
------------------------------------------------------------------------
[2009-10-02 21:13:34] sg at efficientip dot com
Description:
------------
long2ip use inet_ntoa which is not thread-safe (use inet_ntop
instead).
inet_ntoa is also used in several other functions.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49757&edit=1