|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-11 20:36 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
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.