|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37346 gd have a danger bug
Submitted: 2006-05-07 06:42 UTC Modified: 2006-05-07 17:23 UTC
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: zq dot hkrcn at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 5.1.4 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: zq dot hkrcn at gmail dot com
New email:
PHP Version: OS:


 [2006-05-07 06:42 UTC] zq dot hkrcn at gmail dot com
gd (ver 2.0.28) have a danger bug

a error image can pass php's test
but it would make a fatal error

other question:Could you tell me if you deal with bug report in Chinese?

i'm chinese
my english is very poor
here's the bug report in Chinese:

提交上去以后,就会引起 php 的致命错误
www 服务会停止


Reproduce code:
$file = '';
$im = imagecreatefromgif($file);  // here a fatal error

Expected result:
cause a error,then stop running

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-07 06:51 UTC] cnstudentmail at Gmail dot com
i have the same problem.
i think it's a very danger bug because a lots of server is using gd.
 [2006-05-07 10:03 UTC]
We really need a report in english... many people here don't speak any chinese.
 [2006-05-07 12:50 UTC]
I confirmed the problem, but there is in fact no error messages from php.
 [2006-05-07 17:23 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.

Fixed in all branches.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 17:01:28 2024 UTC