Doc #75657 [Opn->Csd]: exif_imagetype returns 18 for webp

From: Date: Fri, 08 Dec 2017 22:16:40 +0000
Subject: Doc #75657 [Opn->Csd]: exif_imagetype returns 18 for webp
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15274@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75657&edit=1 ID: 75657 Updated by: salathe@php.net Reported by: samueljlawson at gmail dot com Summary: exif_imagetype returns 18 for webp -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Darwin Kernel Version 15.6.0 PHP Version: 7.1.12 -Assigned To: +Assigned To: salathe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2017-12-08 22:16:03] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&revision=343622 Log: add IMAGETYPE_WEBP to exif_imagetypes() constants list (doc bug #75657) This was introduced in 7.1.0, and a changelog entry already exists on the page but the constant was not added to the list. ------------------------------------------------------------------------ [2017-12-08 19:17:47] samueljlawson at gmail dot com Description: ------------ php.net documentation for exif_imagetype() lists return values 1-17, but webp images return 18. Test script: --------------- php -r "echo exif_imagetype('foobar.jpg');" // where 'foobar.jpg' is really a webp image type rather than a jpg. Propose that an extra line be added to the documentation at: php.net/manual/en/function.exif-imagetype.php suggestion: after: "17 IMAGETYPE_ICO" something like: "18 IMAGETYPE_WEBP" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75657&edit=1

« previous php.doc.bugs (#15274) next »