note 86155 added to function.readfile
| From: | davedx at gmail dot com | Date: | Mon, 06 Oct 2008 09:29:22 +0000 |
| Subject: | note 86155 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145083@lists.php.net to get a copy of this message | ||
There's a problem with the session mutex and file handling in PHP that can cause deadlocks and
php to fail @ maximum execution time.
This includes any kind of exec flavour, and also readfile. We had a problem where if the user tried
to download a file from our server that was sent with readfile, but then cancelled and retried
straight away, php would freeze and time out. The solution was to end_session() before sending the
file, this fixed it.
----
Server IP: 92.48.74.199
Probable Submitter: 80.6.91.225
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- https://master.php.net/note/edit/86155
Del: integrated -- https://master.php.net/note/delete/86155/integrated
Del: useless -- https://master.php.net/note/delete/86155/useless
Del: bad code -- https://master.php.net/note/delete/86155/bad+code
Del: spam -- https://master.php.net/note/delete/86155/spam
Del: non-english -- https://master.php.net/note/delete/86155/non-english
Del: in docs -- https://master.php.net/note/delete/86155/in+docs
Del: other reasons-- https://master.php.net/note/delete/86155
Reject -- https://master.php.net/note/reject/86155
Search -- https://master.php.net/manage/user-notes.php