From:             ultimate-wizard at insightbb dot com
Operating system: Windows XP/NT
PHP version:      5.1.4
PHP Bug Type:     *General Issues
Bug description:  5.0.2.2 to 5.1.4

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 bug report at http://bugs.php.net/?id=38432&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38432&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38432&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38432&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38432&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38432&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38432&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38432&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38432&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38432&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38432&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38432&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38432&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38432&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38432&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38432&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38432&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38432&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38432&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38432&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38432&r=mysqlcfg

Reply via email to