From: glavoie at mutehq dot net Operating system: Debian Sarge GNU/Linux PHP version: 5.1.2 PHP Bug Type: GD related Bug description: imagecreagefromstring accepts content of MPEG files
Description: ------------ If I give the content of a MPEG file to imagecreatefromstring, it doesn't return an error. This is causing me an headach with HTTP graphic file upload since I must be sure that uploaded files are realli graphic ones for resizing. -- Edit bug report at http://bugs.php.net/?id=36801&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36801&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36801&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36801&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36801&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36801&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36801&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36801&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36801&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36801&r=support Expected behavior: http://bugs.php.net/fix.php?id=36801&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36801&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36801&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36801&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36801&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36801&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36801&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36801&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36801&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36801&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36801&r=mysqlcfg