note 86155 added to function.readfile

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.