ID: 29443 Updated by: [EMAIL PROTECTED] Reported By: fredb86 at hotmail dot com -Status: Open +Status: Closed Bug Type: GetImageSize related Operating System: All PHP Version: 4.3.8 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-07-29 15:00:02] fredb86 at hotmail dot com Description: ------------ If you do a getimagesize of an MPEG-4 video file, getimagesize reports the MIME type as an image file: [mime] => image/vnd.wap.wbmp Sample video file is here: http://sashimikid.spymac.net/junk.mov Reproduce code: --------------- print_r(getimagesize('junk.mov')); Expected result: ---------------- Array ( [0] => 570221 [1] => 100 [2] => 15 [3] => width="570221" height="100" [mime] => video/quicktime ) OR Array ( [0] => 570221 [1] => 100 [2] => 15 [3] => width="570221" height="100" [mime] => video/mp4v-es ) Actual result: -------------- Array ( [0] => 570221 [1] => 100 [2] => 15 [3] => width="570221" height="100" [mime] => image/vnd.wap.wbmp ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29443&edit=1