From: vhaban at atlas dot cz Operating system: Fedora 11 x86 64bit PHP version: 5.3.1RC3 PHP Bug Type: GD related Bug description: imagecreatefromjpeg(): "not a valid JPEG file"
Description: ------------ I am not able to open jpeg files using imagecreatefromjpeg function and still get this: Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'x.jpg' is not a valid JPEG file in ... But it seems that it is not the problem of current PHP version, because it behaves the same with 5.2.9. I have examined both internal and external GD library still with the same result. I have tried gd.jpeg_ignore_warning and also the bug with invalid return type is already solved in 5.3.1RC3. It seems to be rather some compilation error specific to 64 bit Fedora. But no errors are reported during compilation and everything seems to be fine, imagecreatefrompng() is doing perfectly, for example, and the jpeg images are not corrupted. Thank you for any help. -- Edit bug report at http://bugs.php.net/?id=50125&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50125&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50125&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50125&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50125&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50125&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50125&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50125&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50125&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50125&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50125&r=support Expected behavior: http://bugs.php.net/fix.php?id=50125&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50125&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50125&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50125&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50125&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50125&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50125&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50125&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50125&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50125&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50125&r=mysqlcfg