From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.18
PHP version:      4.2.2
PHP Bug Type:     Scripting Engine problem
Bug description:  Leaked Descriptors

Upon investigating the php engine as shipped by RedHat 8.0 with the
env_audit program, I have found that php is leaking descriptors (above and
beyond what apache is leaking). One descriptor is the php webpage being
executed, and 2 copies of the socket returned from accept appear to be
leaked. The env_audit program is listed at freshmeat.net, it comes with
instructions to audit php.

The fix is to add a fcntl(fd, FD_CLOEXEC) after accept and after opening
the page.
-- 
Edit bug report at http://bugs.php.net/?id=20302&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20302&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20302&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20302&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20302&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20302&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20302&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20302&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20302&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20302&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20302&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20302&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20302&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20302&r=isapi

Reply via email to