Re: Large PHP pages bug - revisted?

Rik Griffin wrote:
> I've narrowed down how to reproduce another possible bug in WebJames/PHP.
>
> Here's a simple script, save it as, for example, "test.php" on the
> webserver:
>
>
>
>   <html><head></head><body>
>   <?php
>   for ($i = 0; $i < 500; $i++) {
>     echo "<pre>this is a line of meaningless text blah blah</pre>\n";
>   }
>   ?>
>   </body>
>   </html>
>
> In my tests I could only replicate this bug when viewing the page from a
> different machine, when trying it on the same machine, WebJames would just
> hang indefinitely, but I think that's down to how the internet module
> works.

Yes, it's possible large pages may not work over the loopback interface,
as  PHP will block when the buffers are full, but the browser can't empty
the buffer as it can't run until PHP has finished.
I'll see if I can reproduce the crash over the weekend.




Other related posts: