php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21762 imagefilledellipse, imagefilledarc crash
Submitted: 2003-01-20 01:27 UTC Modified: 2003-01-21 00:55 UTC
From: helak at hotmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.0 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-01-20 01:27 UTC] helak at hotmail dot com
I installed Apache 1.3.27 (windows binary, module) + PHP 4.3 (latest version, download, windows binary) on Windows 2000. Following script using GD library works, but enabling imagefilledellipse line causes script to crash. There is similar effect when using imagefilledarc. Imagefilledrectangle works fine.

<?php

header ("Content-type: image/png");

$im = @imagecreate (200, 200) or die ("Cannot Initialize new GD image stream");
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im,   0,   0,   0);

//  imagefilledellipse($im,100,100,50,50,$black);
  imageellipse($im,100,100,50,50,$black);
  
imagepng ($im);
imagedestroy($im);

?>

Thank you for looking into it,

ZB

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-20 11:19 UTC] helak at hotmail dot com
I tested:

http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

It still behaves the same way.
Either I am doing something wrong or there is indeed a bug,

ZB
 [2003-01-20 17:03 UTC] sniper@php.net
First of all, PLEASE don't use the 'Add Comment' page when
you add comments to your own report!!

Second, what do you mean with 'crash' ?

 [2003-01-20 18:34 UTC] helak at hotmail dot com
Sniper,

Sorry, I did not know how to add more comments to my own report. I hope this time I got it right.

When I add imagefilledellipse/ imagefilledarc line script does not seem to execute successfully. No image appears in the browser, just the image placeholder. This line essentially kills the execution of the entire script. PHP continues to run on the server and other/consecutive PHP requests are not interrupted. 

Thanks again,

ZB
 [2003-01-20 19:02 UTC] iliaa@php.net
Cannot replicate on Linux or Windows XP using latest CVS.
 [2003-01-20 21:41 UTC] sniper@php.net
Please make sure you have really updated PHP correctly
and ALL the files. Especially php4ts.dll and the extra dlls from the dlls/ folder in the release package.

And make sure you don't have many copies of those files laying around in your system.

(There was another report with similar problem which was solved by reinstalling + reboot)

 [2003-01-21 00:48 UTC] helak at hotmail dot com
Problem solved. 

Sorry for the confusion. I should have enabled php_gd2.dll library instead of php_gd.dll. I simply thought that php_gd.dll now contain the latest version of GD library. 

I can only suggest making the documentation more clear that php_gd.dll is only included for backward compatibility.

Once again - thank you for your help,

ZB
 [2003-01-21 00:55 UTC] sniper@php.net
yeah, right..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 10:01:32 2024 UTC