php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62939 IMAGETYPE_XXX constant names aren't listed anywhere
Submitted: 2012-08-26 18:27 UTC Modified: 2012-08-26 18:33 UTC
From: rulatir at wp dot pl Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
 [2012-08-26 18:27 UTC] rulatir at wp dot pl
Description:
------------
The IMAGETYPE_XXX constant names aren't listed anywhere, or at least the place where they are listed cannot be easily reached from either exif_imagetype() or getimagesize() documentation (the former directs the user to the latter, promising that the constants WILL be listed there, but they aren't). This leaves the programmer to try-and-error whether it's e.g. IMAGETYPE_JPG or IMAGETYPE_JPEG or something else entirely.

---
From manual page: http://www.php.net/function.getimagesize#refsect1-function.getimagesize-changelog
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-26 18:32 UTC] rulatir at wp dot pl
-Status: Open +Status: Closed
 [2012-08-26 18:32 UTC] rulatir at wp dot pl
Jesus christ am I blind, or did the block show collapsed the first time I opened the getimagesize() docs page? Resolved/Invalid.
 [2012-08-26 18:33 UTC] salathe@php.net
The exif_imagetype() manual page[1] lists those constants under the "Predefined 
Constants" heading. Were you perhaps looking at a non-English translation which 
might be missing them?

[1] http://php.net/manual/en/function.exif-imagetype.php
 [2012-08-26 18:33 UTC] salathe@php.net
-Status: Closed +Status: Feedback
 [2012-08-26 18:33 UTC] salathe@php.net
Ahh, you're just blind. Thanks for the reply! Re-closing.
 [2012-08-26 18:33 UTC] salathe@php.net
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: salathe
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 08:00:01 2026 UTC