From:             [EMAIL PROTECTED]
Operating system: Darwin 6 (Mac OS 10.2)
PHP version:      4.2.3
PHP Bug Type:     GD related
Bug description:  ImageCreateFromGD2Part() don't accept some vars

When I was working on a different bug
(http://bugs.php.net/bug.php?id=19418) I noticed that if I used this
line:

$img = ImageCreateFromGD2Part( $medimg, 1, 1, 800, 600 );

The script workedfine , but if I put single quotes around some vars like
this:

$img = ImageCreateFromGD2Part( $medimg, 1, 1, '800', '600' );

the httpd proccess was thrown into some loop that used 100% of CPU time.

While checking this out further, I noticed that these programs run the
second that I requested the file (taken from top):

 9233 c++filt3     0.0%  0:00.00   1     9    14    48K   400K   268K 
1.37M
 9232 crashdump   99.3%  0:02.12   2    15   404  25.2M  27.9M  33.2M 
59.7M 

and then the httpd proccess goes wild:

 9235 httpd       56.9%  0:00.64   1     8  2179   576K+ 13.7M+ 2.65M+
3.49G-
 
(next second)

 9235 httpd       99.1%  0:01.74   1     8  2179   600K+ 13.7M  2.67M+
3.49G 
 
I am not much of a C hacker, so I really have no clue as to what is going
on.
-- 
Edit bug report at http://bugs.php.net/?id=19487&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19487&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19487&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19487&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19487&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19487&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19487&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19487&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19487&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19487&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19487&r=globals

Reply via email to