Bug #10723 Updated: error max_execution_time, unrelated to value in php.ini

From: Date: Tue, 08 May 2001 10:20:11 +0000
Subject: Bug #10723 Updated: error max_execution_time, unrelated to value in php.ini
Groups: php.dev 
Request: Send a blank email to php-dev+get-54366@lists.php.net to get a copy of this message
ID: 10723 Updated by: derick Reported By: steffen.schreiner@lgl.de Old-Status: Open Status: Feedback Bug Type: Program Execution Operating system: PHP Version: 4.0.5 Assigned To: Comments: The mail.php script gives this error: Warning: fopen("","r") - Inappropriate ioctl for device in /usr/local/httpd/htdocs/mail/debug/mail.php on line 2 Warning: Supplied argument is not a valid File-Handle resource in /usr/local/httpd/htdocs/mail/debug/mail.php on line 3 Warning: Supplied argument is not a valid File-Handle resource in /usr/local/httpd/htdocs/mail/debug/mail.php on line 5 Warning: Supplied argument is not a valid File-Handle resource in /usr/local/httpd/htdocs/mail/debug/mail.php on line 3 Please fix that first, as this occured for a 10 bytes file Previous Comments: --------------------------------------------------------------------------- [2001-05-08 06:15:57] steffen.schreiner@lgl.de OK,on both Sktipts I've added phpinfo(). --------------------------------------------------------------------------- [2001-05-08 03:01:28] derick@php.net Can you add a call to phpinfo() at the end of the action.php and mail.php scripts? --------------------------------------------------------------------------- [2001-05-08 00:09:33] steffen.schreiner@lgl.de It's a problem with a big (2MB or greater) file upload. After the file is up, the message "Fatal error: Maximum execution time of 2 seconds exceeded" appears, but the parameter max_execution_time in php.ini hasn't this value, nor the error is influenced by any value for set_time_limit in the php.ini. The Skripts are: action.php ---------- <? $maxupload = "10485760"; echo '<form action="mail.php" method="POST" ENCTYPE="multipart/form-data" name="neumail"> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="$maxupload"> <input type="file" size="35" name="attach" value=""> <input type="submit" name="BLIND" value=" Ok ">'; ?></body></html> ---------- mail.php ---------- <? $fp = fopen($attach,'r'); while (!feof ($fp)) { $attachment .= fgetc($fp); }?> ---------- It can be testet at: http://www.lgl.de/mail/debug/action.php http://www.lgl.de/mail/debug/mail.php http://www.lgl.de/mail/debug/phpinfo.php --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10723&edit=2

« previous php.dev (#54366) next »