ID:          39710
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
 Status:      Feedback
 Bug Type:    Network related
 PHP Version: 5.2CVS-2006-12-01 (CVS)
 New Comment:

Well, taken from `man getprotobyname` on FreeBSD 6.2:

BUGS
     These functions use a thread-specific data space; if the data is
needed
     for future use, it should be copied before any subsequent calls
overwrite
     it.  Only the Internet protocols are currently understood.

I believe a race condition still exists in php-src for these functions?


Previous Comments:
------------------------------------------------------------------------

[2007-08-29 11:51:35] [EMAIL PROTECTED]

You mean the operating system's functions are not thread-safe?
(how to reproduce and what error do you get? :)

------------------------------------------------------------------------

[2006-12-01 22:57:42] [EMAIL PROTECTED]

Description:
------------
The PHP functions:

getservbyname
getservbyport
getprotobyname
getprotobynumber

are not thread safe.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39710&edit=1

Reply via email to