Bug #66611 [Dup]: php allows sockets to be inherited

From: Date: Sat, 26 Aug 2023 14:31:40 +0000
Subject: Bug #66611 [Dup]: php allows sockets to be inherited
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245251@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66611&edit=1 ID: 66611 Updated by: bukka@php.net Reported by: arekm at maven dot pl Summary: php allows sockets to be inherited Status: Duplicate Type: Bug Package: FPM related Operating System: Linux PHP Version: 5.5.8 Block user comment: N Private report: N New Comment: This has been addressed by https://github.com/php/php-src/commit/418cdc0bea3d7787587964f42c309602d70232c6 and will be available in PHP 8.3.0. Previous Comments: ------------------------------------------------------------------------ [2014-08-04 19:41:09] langemeijer@php.net This is a partial duplicate of bug #67383 (Which contains a patch solves this problem and should be merged by someone!) ------------------------------------------------------------------------ [2014-01-31 20:09:39] glen at delfi dot ee https://issues.apache.org/bugzilla/show_bug.cgi?id=46425 ------------------------------------------------------------------------ [2014-01-31 20:08:31] glen at delfi dot ee $ svn log -c 747990 https://svn.apache.org/repos/asf|diffcol |less ------------------------------------------------------------------------ r747990 | bojan | 2009-02-26 04:41:21 +0200 (N, 26 veebr 2009) | 7 lines Set CLOEXEC flags where appropriate. Either use new O_CLOEXEC flag and associated functions, such as dup3(), accept4(), epoll_create1() etc., or simply set CLOEXEC flag using fcntl(). Patch by Stefan Fritsch <sf sfritsch.de> and Arkadiusz Miskiewicz <arekm pld-linux.org>. PR 46425. ------------------------------------------------------------------------ [2014-01-31 20:06:57] glen at delfi dot ee that svnweb link opens dead slow, so here's command you can get the diff faster from terminal: $ svn diff -c 747990 https://svn.apache.org/repos/asf ------------------------------------------------------------------------ [2014-01-30 10:38:49] arekm at maven dot pl Note, example of similar case (leaking socket/descriptors) in apache apr code and how it got fixed there: http://svn.apache.org/viewvc?view=revision&revision=747990 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=66611 -- Edit this bug report at https://bugs.php.net/bug.php?id=66611&edit=1

« previous php.bugs (#245251) next »