#50740 [Fbk->Opn]: Dynamic ImageJPEG documentation
| From: | garypaluk at hotmail dot co dot uk | Date: | Thu, 14 Jan 2010 17:43:40 +0000 |
| Subject: | #50740 [Fbk->Opn]: Dynamic ImageJPEG documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3706@lists.php.net to get a copy of this message | ||
ID: 50740
User updated by: garypaluk at hotmail dot co dot uk
Reported By: garypaluk at hotmail dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: Documentation problem
Operating System: Windows XP
PHP Version: 5.3SVN-2010-01-13 (snap)
Assigned To: kalle
New Comment:
I just discovered that it was actually an issue with using PHP v5.3.0
and using 'notepad' on WinXP to write the code. I spent quite along time
trying to get this to work but when my partner tried on her version of
notepad++ and it worked ok.
I copied the code from notepad++ back to notepad, saved it and it was
broken again so I don't know what is going on there. I was using ANSI
encoding, no trailing character etc (the same as notepad++), so I'm not
sure what notepad is doing but it caused me to think that it was a
documentation issue when it is infact something different.
Regards
Gary
Previous Comments:
------------------------------------------------------------------------
[2010-01-14 02:36:37] kalle@php.net
Which example in paticular are you referering to?
------------------------------------------------------------------------
[2010-01-13 13:45:24] garypaluk at hotmail dot co dot uk
Description:
------------
The documentation is not correct as per changes in the implementation
of the GD ImageJPEG functionality. In FireFox and possible other
browsers, the code produces a dead image and is replaced with the string
representation of the page URL instead of the dynamically created image
from the GD library.
Reproduce code:
---------------
---
From manual page: function.imagejpeg#Examples
---
Expected result:
----------------
An dynamically created image output by the GD library.
Actual result:
--------------
Textual output of the Firefox browser respresenting the page URL.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50740&edit=1