[PHP-DEV] Bug #10783 Updated: getImagesize return false for some jpeg images From: sniper <email protected>
Date: 05/16/01

ID: 10783
Updated by: sniper
Reported By: phasis <email protected>
Old-Status: Open
Status: Closed
Bug Type: GetImageSize related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:

should be fixed in CVS now.

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2001-05-10 06:10:42] phasis <email protected>

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.

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10783&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>