|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50740 Dynamic ImageJPEG documentation
Submitted: 2010-01-13 13:45 UTC Modified: 2010-01-14 19:03 UTC
From: garypaluk at hotmail dot co dot uk Assigned: kalle (profile)
Status: Not a bug Package: Documentation problem
PHP Version: 5.3SVN-2010-01-13 (snap) OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: garypaluk at hotmail dot co dot uk
New email:
PHP Version: OS:


 [2010-01-13 13:45 UTC] garypaluk at hotmail dot co dot uk
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-14 02:36 UTC]
Which example in paticular are you referering to?
 [2010-01-14 17:43 UTC] garypaluk at hotmail dot co dot uk
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.


 [2010-01-14 19:01 UTC]
Thank you for your feedback and best of luck getting Notepad++ to work as you want. :)
 [2010-01-14 19:03 UTC] garypaluk at hotmail dot co dot uk
Just to re-iterate incase anyone else is having the same problem. The issue is with notepad NOT notepad++.


PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 23:01:24 2020 UTC