php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29443 Getimagesize reports MPEG-4 video as WBMP
Submitted: 2004-07-29 15:00 UTC Modified: 2004-07-30 03:10 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: fredb86 at hotmail dot com Assigned:
Status: Closed Package: GetImageSize related
PHP Version: 4.3.8 OS: All
Private report: No CVE-ID:
 [2004-07-29 15:00 UTC] 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
)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-30 03:10 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 08:02:33 2014 UTC