#40490 [Bgs]: imagejpeg() returns page URL instead of image
| From: | pajoye@php.net | Date: | Thu, 15 Feb 2007 14:55:59 +0000 |
| Subject: | #40490 [Bgs]: imagejpeg() returns page URL instead of image | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108977@lists.php.net to get a copy of this message | ||
ID: 40490
Updated by: pajoye@php.net
Reported By: php at rebby dot com
Status: Bogus
Bug Type: GD related
Operating System: Slackware Linux
PHP Version: 5.2.1
New Comment:
I cannot access your script (404).
But some tips:
- verify you don't add whitespaces before or after your <? ?> tags
- you don't echo something
- the right header has been sent
But nothing change in image[format] between 5.2.0 and 5.2.1. Ask on
php-general if you fail to find the problem.
Previous Comments:
------------------------------------------------------------------------
[2007-02-15 13:59:56] php at rebby dot com
Thank you for your assistance. I guess that I will just have to spend a
bit more time troubleshooting to figure out why this script broke
between 5.2.0 and 5.2.1.
------------------------------------------------------------------------
[2007-02-15 08:58:41] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2007-02-15 02:01:15] php at rebby dot com
Description:
------------
A GD page which relies on imagejpeg(), among other functions, returns
the page URL rather than displaying the image. This script has worked
fine since early 4.x when it was developed. No errors of any kind are
output in my error log.
Reproduce code:
---------------
http://rebby.com/images/email/image.txt
Expected result:
----------------
The code above is included after loading a global configuration file.
The code pulls the location of a jpeg image on my filesystem, makes
some alterations (resizes the image and adds a URL tag), and should
output the image directly to the browser.
Actual result:
--------------
Instead of returning the image the URL of the image is returned
instead. For example, if you source this page at
http://rebby.com/image.php?i=123&s=4 the
string
"http://rebby.com/image.php?i=123&s=4"
is displayed in the browser
instead of the desired image.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40490&edit=1