From: fredb86 at hotmail dot com Operating system: All PHP version: 4.3.8 PHP Bug Type: GetImageSize related Bug description: Getimagesize reports MPEG-4 video as WBMP
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 bug report at http://bugs.php.net/?id=29443&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29443&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29443&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29443&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29443&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29443&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29443&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29443&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29443&r=support Expected behavior: http://bugs.php.net/fix.php?id=29443&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29443&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29443&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29443&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29443&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29443&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29443&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29443&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29443&r=float