Can some one with CVS access please fix this as the details about register-shutdown-function and output to the buffer are incorrect as I have just been told since 4.1 and I have been advising users as per the documentation.
Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -----Original Message----- From: Tamas Arpad [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 11:45 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Timothy Hitchens (HiTCHO); Jean-Christian Imbeault Subject: Re: [PHP] How to detect a PHP script time-out? On Wednesday 08 January 2003 06:42, Jean-Christian Imbeault wrote: > Timothy Hitchens ) wrote: > > Issue... as I said before the register shutdown won't work because: > > > > - output from the shutdown is not visible nor do you have access to > > some variables > > You are right. From the manual: > > http://www.php.net/manual/en/function.register-shutdown-function.php > > " The registered shutdown functions are called after the request has > been completed (including sending any output buffers), so it is not > possible to send output to the browser using echo() or print(), or > retrieve the contents of any output buffers using ob_get_contents()." That's not right now. The manual is outdated. See this bug report http://bugs.php.net/bug.php?id=15209. This behavior was changed from 4.06 to 4.1. In newer versions of php the registered functions will run before the connection is closed so ouptput can be done from there as well. So Jean you can make it as it is suggested on this page: http://www.php.net/manual/en/features.connection-handling.php Arpi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
