Did you also noticed the partial image files are always in multiple of 4096 in size? There must be some inner php caching that just does not work right. This bug should be fixed.

Jay Blanchard wrote:

[snip]
If your are using $graph->Stroke('sometempfile'); before $pdf->Image('sometempfile'); (I bet you do), then the image should be completed.


Is it happening always or just now and then? What if you wait a few seconds between the two calls? Do you call clearstatcache()?

I'm asking this because I once had a similar problem. My code created a file and included it right away. But sometimes (about 10%) the file was empty or incomplete. I never managed to reproduce this in a small example, only in my few 100 line script. I also noticed other people had

this problem.
[/snip]

It was intermittent as described by you. We tried sleep() and
clearstatcache() and still found intermittent problems....especially
with data intensive graphs. Using the redirect actually seems faster
(not tested) than the direct embed. Perhaps it is because of the sizes
of both classes in combination.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to