note 40384 added to function.fopen

From: Date: Tue, 02 Mar 2004 09:03:02 +0000
Subject: note 40384 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-66077@lists.php.net to get a copy of this message
If you your apache is using more than 1024 fd per child(that will happen if there are more than 1024 virtuals and you have at least 1 log file per virt;1024 is usually the default FD_SETSIZE) and you are doing something like: $fd = fopen("www.gigel.com","r"); then is posible that fopen it will hang (waiting to return from select); The fix is to recompile the kernel with bigger FD_SETSIZE and change the include file that have it(/usr/src/sys/types.h in FreeBSD, /usr/include/linux/posix_types.h or /usr/include/bits/typesizes.h in Linux) and ... recompile php ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40384 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40384&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40384&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66077) next »