php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48991 JPG -> JPEG change breaks things
Submitted: 2009-07-20 21:31 UTC Modified: 2009-11-16 12:46 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: colin at viebrock dot ca Assigned: cmv (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.0 OS: Linux
Private report: No CVE-ID: None
 [2009-07-20 21:31 UTC] colin at viebrock dot ca
Description:
------------
We recently upgraded to 5.3.0.  The change made here:

http://svn.php.net/viewvc?view=revision&revision=277688

has had the unintended effect of breaking some applications that rely on 
gd_info() to test for JPEG support (specifically in my case the 
Textpattern blogging engine).  Neither the manual nor the migration 
notes made reference to this.

Not a big deal, but was this really required?  I suppose the person 
posting bug #47757 thought so!

Reproduce code:
---------------
var_dump(gd_info())

Expected result:
----------------
... ["JPG Support"]=> bool(true) ...

Actual result:
--------------
... ["JPEG Support"]=> bool(true) ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-21 05:35 UTC] philip@php.net
I wonder for BC if both keys should exist here... what do you think?
 [2009-07-21 14:06 UTC] pajoye@php.net
I do not really care. The new name is correct, but if it makes some devs easier, I will happily a patch :)
 [2009-07-21 14:29 UTC] colin at viebrock dot ca
Having both for BC would've been nice, but since 5.3.0 is out there, 
it'll only have the one, so BC will always be broken for that one 
version.

Personally, I think moving forward to just the one attribute "JPEG" is 
fine, and I'll adjust the phpdocs to reflect this.

Thanks!)
 [2009-11-16 12:46 UTC] vrana@php.net
Already documented.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 20:01:46 2025 UTC