ID:               38432
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ultimate-wizard at insightbb dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Windows XP/NT
 PHP Version:      5.1.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




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

[2006-08-11 20:10:43] ultimate-wizard at insightbb dot com

Description:
------------
I've had 5.0.2 for quite some time, have never had a problem with it. 
I tried upgrading to 5.1.4 and it gives me an error when turning on the
server saying something like php_gd2.dll, php_mysql.dll, and php_dba.dll
can't be found in the library at ./ before each of those names.  Yes I
have the extensions in the php.ini file pointing to their location. 
Yes I have tried totally deleting my php directory with the 5.0.2
version and putting all files from the 5.1.4 version into a php folder.
 When I delete the folder and recreate the 5.0.2 verion it works just
fine again and the bargraphs generated from the php_gd2.dll work again.
 The error only happens when I try running the 5.1.4 version.  Also I
did run the php5activescript.dll it gave me the same errors when
running it at the command prompt. I am running Apache 2.0 and as I said
have never had a problem until now. Please let me know if you come up
with something, or can guide me into the right direction.

Thank You,
The Ultimate Wizard

Reproduce code:
---------------
<?php
$myImage = ImageCreate(150,150);
//setup colors
$black = ImageColorAllocate($myImage, 0, 0, 0);
$white = ImageColorAllocate($myImage, 255, 255, 255);
$turquoise = ImageColorAllocate($myImage, 94, 196, 217);
//draw some rectangles
ImageFilledRectangle($myImage, 0, 50, 30, 150, $turquoise);
ImageFilledRectangle($myImage, 40, 70, 70, 150, $turquoise);
ImageFilledRectangle($myImage, 80, 40, 110, 150, $turquoise);
ImageFilledRectangle($myImage, 120, 60, 150, 150, $turquoise);
//Output the image to browser
header("Content-type: image/png");
ImagePng($myImage);
//Clean up after yourself
ImageDestroy($myImage);
?>

Expected result:
----------------
I would expect to see my bargraph.  

Actual result:
--------------
Fatal error: Call to undefined function ImageCreate() in
C:\local\barchart.php on line 9
<- That is the result that I get when running the code above in version
5.1.4 in version 5.0.2 my graph shows up fine.  


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


-- 
Edit this bug report at http://bugs.php.net/?id=38432&edit=1

Reply via email to