ID:               19886
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Performance problem
 Operating System: Windows, any Version
 PHP Version:      4CVS-2002-10-13
 New Comment:

In addition

[frame1.php]
<?
// Adding sleep(5) will solve the problem the first time a
// >100k File is called. The next output of a >100k File
// will crash again...
sleep(5); 
header("Content-type: application/pdf\n");
readfile("some_100k_large.pdf");
?>


Previous Comments:
------------------------------------------------------------------------

[2002-10-13 10:22:32] [EMAIL PROTECTED]

That last comment should let us open it back.

Removing the "big-files-passthrough" let the scripts run properly.

@Wez: can you check it? may be its because of the position of the
stream at the end of the execution of the first checksize?

------------------------------------------------------------------------

[2002-10-13 10:19:11] [EMAIL PROTECTED]

The following snippets illustrate the environment


[frameset.php]
->frame1.php
->frame2.php
->frame3.php


[frame1.php]
<?
header("Content-type: application/pdf\n");
readfile("some_100k_large.pdf");
?>

[frame2.php]
<?
echo "Something";
?>

[frame3.php]
<?
echo "else";
?>

------------------------------------------------------------------------

[2002-10-13 10:16:01] [EMAIL PROTECTED]

@wez: These scripts don't use sessions. They run of a CD in a
single-user-environment.

@nicos: Calling the "passthrough"-script directly works without errors.
But calling it in an frameset (together with two other scripts) crashes
when outputting a file > 100k,

The php_stream_read() returns the correct filesize.
The fact, that the parrallel execution of three scripts of one handles
a big file may be the source of the problem.

There are no write-accesses. Only Read-Accesses to small config-files.

Removing the "big-files-passthrough" let the scripts run properly.

------------------------------------------------------------------------

[2002-10-13 10:02:11] [EMAIL PROTECTED]

Can you reduce this to the simplest combination of scripts?
(That don't use sessions).

------------------------------------------------------------------------

[2002-10-13 09:37:40] [EMAIL PROTECTED]

did you checked if php_stream_read() was returning the right filesize
value? that was the first bug.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19886

-- 
Edit this bug report at http://bugs.php.net/?id=19886&edit=1

Reply via email to