From: maia_good at hotmail dot com Operating system: Windows_NT PHP version: 5.1.4 PHP Bug Type: GetImageSize related Bug description: bug #29443 is still present
Description: ------------ Bug #29443 is still present in 5.1.4 despite being closed as of 30 Jul 2004. [29 Jul 2004 3:00pm UTC] fredb86 at hotmail dot com 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 [30 Jul 2004 3:10am UTC] [EMAIL PROTECTED] 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/. 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=37521&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37521&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37521&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37521&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37521&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37521&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37521&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37521&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37521&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37521&r=support Expected behavior: http://bugs.php.net/fix.php?id=37521&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37521&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37521&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37521&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37521&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37521&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37521&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37521&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37521&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37521&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37521&r=mysqlcfg