svn: /phpdoc/en/trunk/reference/exif/functions/ exif-imagetype.xml

From: Date: Mon, 12 Nov 2012 22:34:17 +0000
Subject: svn: /phpdoc/en/trunk/reference/exif/functions/ exif-imagetype.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-10701@lists.php.net to get a copy of this message
salathe Mon, 12 Nov 2012 22:34:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=328333 Log: exif_imagetype (actually standard/image.c, php_getimagetype) requires between 3 and 12 bytes in a file, otherwise it E_NOTICEs. (doc #63329) -- Provided by anonymous #22227 (mail+php@requinix.net) Bugs: https://bugs.php.net/63329 (Open) Read Error https://bugs.php.net/22227 (Closed) printf() field limiters broke between 4.2.3 and 4.3.0 Changed paths: U phpdoc/en/trunk/reference/exif/functions/exif-imagetype.xml Modified: phpdoc/en/trunk/reference/exif/functions/exif-imagetype.xml =================================================================== --- phpdoc/en/trunk/reference/exif/functions/exif-imagetype.xml 2012-11-12 22:34:04 UTC (rev 328332) +++ phpdoc/en/trunk/reference/exif/functions/exif-imagetype.xml 2012-11-12 22:34:17 UTC (rev 328333) @@ -46,6 +46,16 @@ same value that <function>getimagesize</function> returns in index 2 but <function>exif_imagetype</function> is much faster. </para> + + <note> + <para> + <function>exif_imagetype</function> will emit an <constant>E_NOTICE</constant> + and return &false; if it is unable to read enough bytes from the file to + determine the image type. + <!-- If the function finds an incomplete PNG header then it may emit an + <constant>E_WARNING</constant> instead. - Is this worth including? --> + </para> + </note> </refsect1> <refsect1 role="changelog"> &reftitle.changelog;

« previous php.doc.cvs (#10701) next »