|  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:
Solve the problem:
17 - 1 = ?
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 

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.


Add a Patch

Pull Requests

Add a Pull Request


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


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 20:01:29 2024 UTC