ID: 37574 Updated by: [EMAIL PROTECTED] Reported By: dr at sweety dot li -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Win NT PHP Version: Irrelevant New Comment:
This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "Open files with lock (especially open sessions) should be closed before executing a program in the bacground." Previous Comments: ------------------------------------------------------------------------ [2006-12-12 21:51:23] milegend at hotmail dot com I think someone should take a look at this bug. It has been around for too long. It has been reported before at: http://bugs.php.net/bug.php?id=22526. If it isn't a bug it should be mentioned on the manual page. Thanks ------------------------------------------------------------------------ [2006-05-24 07:08:15] dr at sweety dot li Description: ------------ I'm referring to the "bug" descriped here : http://bugs.php.net/bug.php?id=10675&edit=1 . I would recommend that you add a warning on the "Program Execution Functions" documentation page which basically advises the programmer to close any open session before calling exec() or other related functions as otherwise the PHP script may hang! Reproduce code: --------------- session_start(); exec('ls'); // Save this, open the page in a browser and reload repeatedly. After several successful reloads, the page will just hang Expected result: ---------------- nothing, the correct code seems to be: session_start(); /* .... code ... */ session_write_close(); exec('ls'); @session_start(); // There's no locking in this code ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37574&edit=1
