|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-12-01 22:57 UTC] dave@php.net
Description: ------------ The PHP functions: getservbyname getservbyport getprotobyname getprotobynumber are not thread safe. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 11:00:01 2025 UTC |
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?