#25603 [Opn->Bgs]: exif_imagetype
| From: | helly@php.net | Date: | Fri, 19 Sep 2003 11:34:21 +0000 |
| Subject: | #25603 [Opn->Bgs]: exif_imagetype | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47829@lists.php.net to get a copy of this message | ||
ID: 25603
Updated by: helly@php.net
Reported By: flobee at gmx dot net
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
-Operating System: Win XP
+Operating System: *
-PHP Version: 4.3.3
+PHP Version: *
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
That means you haven't loaded exif extension.
Previous Comments:
------------------------------------------------------------------------
[2003-09-19 07:22:47] flobee at gmx dot net
Description:
------------
function: exif_imagetype do not exists! Fatal error: Call to undefined
function
Reproduce code:
---------------
function chk_image($type,$imagepath) {
$transtype = "";
if(file_exists($imagepath)) {
switch($type) {
case "gif": $transtype = IMAGETYPE_GIF; break;
case "jpg": $transtype = IMAGETYPE_JPEG; break;
case "png": $transtype = IMAGETYPE_PNG; break;
case "swf": $transtype = IMAGETYPE_SWF; break;
case "psd": $transtype = IMAGETYPE_PSD; break;
case "bmp": $transtype = IMAGETYPE_BMP; break;
}
if (exif_imagetype($imagepath) == $transtype) {
return true;
} else {
return false;
}
} else {
return false;
//echo "Error: Image not Found<br>";
}
}
puts out: Fatal error: Call to undefined function exif_imagetype
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25603&edit=1