|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38214 imagegif() does not product interlaced gif images
Submitted: 2006-07-26 00:47 UTC Modified: 2006-07-26 10:06 UTC
From: gn-spark at bk dot ru Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 5.1.4 OS: Win32
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:
45 - 20 = ?
Subscribe to this entry?

 [2006-07-26 00:47 UTC] gn-spark at bk dot ru
imagegif() does not product interlaced gif images when interlace bit is on. memset() overwrites actual value of interlace bit in php-5.1.4\ext\gd\libgd\gd_gif_out.c at line 270.

Reproduce code:

        ctx.Interlace = GInterlace;
	ctx.in_count = 1;
	memset(&ctx, 0, sizeof(ctx));

Expected result:
	memset(&ctx, 0, sizeof(ctx));
        ctx.Interlace = GInterlace;

(ctx.in_count is later assigned to 1 in function compress() at line 514.)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-26 07:04 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-07-26 10:06 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 24 08:01:23 2021 UTC