#17407 [Fbk->Opn]: File inclusion stops working

From: Date: Fri, 09 Aug 2002 08:13:22 +0000
Subject: #17407 [Fbk->Opn]: File inclusion stops working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16366@lists.php.net to get a copy of this message
ID: 17407 User updated by: js@netcamp.se Reported By: js@netcamp.se -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Solaris 8 -PHP Version: 4.1.2 +PHP Version: 4.2.2 New Comment: I have upgraded to 4.2.2, the problem stil exist. Is there a way to tune the amount of avalibel file handels? Is there a way to se the current status of file handels? Can file handels be "lost" when I do SIGHUP to restart? If I do a fopen and forget the fclose is that file closed anyway when the PHP script ends? Regards, Johan Previous Comments: ------------------------------------------------------------------------ [2002-07-24 07:06:08] hholzgra@php.net well, you obviously run out of file handles might be related to excessive use of persistant connections, to a php extension not closing all openend files on request shutdown or even to some other apache module or apache itself instead of php ... really hard to tell without further information :( ------------------------------------------------------------------------ [2002-05-24 05:46:20] js@netcamp.se I am not sure of the bug type... After running the apache server for about 14 days or sometimes after a SIGHUP restart, I get the following error messages, when accessing normaly working scripts: Warning: file("/usr/local/apache/ncoffice/style/rep_head.html") - Too many open files in /usr/local/apache/ncoffice/1.5.22/php/common.inc.php on line 1162 Warning: Failed opening 'php/report_time_list_proj.inc.php' for inclusion (include_path='') in /usr/local/apache/ncoffice/1.5.22/php/report_time_list.inc.php on line 161 Warning: file("/usr/local/apache/ncoffice/style/rep_tail.html") - Too many open files in /usr/local/apache/ncoffice/1.5.22/php/common.inc.php on line 1162 After a stop and start it works fine again. Wath's happening? Configuration: './configure' '--with-apache=../apache_1.3.22' '--enable-track-vars' '--with-imap=/usr/local/src/imap/imap-2001a/c-client' '--with-mysql=/usr/local/mysql' '--with-zlib=/usr/local' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-curl=/usr/local' '--enable-exif' Regards, Johan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17407&edit=1

« previous php.bugs (#16366) next »