Home  |  Linux  | Mysql  | PHP  | XML
From:davedx@gmail.com Date:Mon Oct  6 03:29:22 2008
Subject:note 86155 added to function.readfile
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

Navigate in group php.notes at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants