#39710 [Fbk]: getprotobyname is not thread-safe

From: Date: Wed, 29 Aug 2007 12:45:08 +0000
Subject: #39710 [Fbk]: getprotobyname is not thread-safe
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116821@lists.php.net to get a copy of this message
ID: 39710 Updated by: dave@php.net Reported By: dave@php.net 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] jani@php.net 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] dave@php.net 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

« previous php.bugs (#116821) next »