php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22581 Image shows only half-way while outputting directly to browser
Submitted: 2003-03-07 01:40 UTC Modified: 2003-03-13 12:16 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: Tadej dot Kanizar at guest dot arnes dot si Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.1 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-03-07 01:40 UTC] Tadej dot Kanizar at guest dot arnes dot si
I have php_gd2.dll enabled in php.ini and I have a script, which reads from a file (250kb), turns that into a huge array and then, pixel by pixel, creates the needed image. If I then save the image into a jpeg and show it using img tag, it works, but if I try to send it directly to the browser, it usually displays only half-way. This only happens if the user is accessing remotely (not from lan, from which it works). And, though not related to GD, a similar problem occurs with a script (300 lines), which generates about 650 lines of html. To people accessing remotely, it usually just says "Page not found", but the script works correctly (at least on lan). I tried to make the timeout bigger, but it didn't help. I have, however, discovered that the script works better now than it did, when it outputted about 1800 lines of html. Then it didn't work correctly on lan too (and I'm 100% that the code itself doesn't and didn't have any errors).
I don't really know if this is a bug or not, but nobody responded when I posted this problem onto several forums!
So please, help me, if you can!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-07 02:10 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Even as it propably isn't bug, but try it still.
What did you set the max_execution_time??
(try adding set_time_limit(0); in your script..maybe it just timeouts?)

Do you have output_buffering enabled in php.ini?
Are you possibly using compression?

 [2003-03-13 12:16 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-06-22 10:01 UTC] flipjetiel at yahoo dot com
This happens on my machine, but only with some images. Images from a digital camera work fine, images converted from another format seem to have this problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 15:01:29 2024 UTC