php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10783 getImagesize return false for some jpeg images
Submitted: 2001-05-10 06:10 UTC Modified: 2001-05-16 00:53 UTC
From: phasis at phasis dot co dot kr Assigned:
Status: Closed Package: GetImageSize related
PHP Version: 4.0.5 OS: Red Hat Linux release 6.2 (Zoot)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 32 = ?
Subscribe to this entry?

 
 [2001-05-10 06:10 UTC] phasis at phasis dot co dot kr
I found some bug in 4.0.5 source distribution 
/ext/standard/image.c

In function php_handle_jpeg,
variable marker must be initialized before for loop
like following

      marker = FP_FGETC(socketd,fp,issock);
      for(;;) {
         ...
         marker = php_next_marker(socketd,fp,issock);
      }

I modified souce code and rebuit php modlue.
Then getImagesize work properly for all jpeg images.

  Park Hee-Sob.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-16 00:53 UTC] sniper@php.net
should be fixed in CVS now.

--Jani

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 10:01:23 2021 UTC