From: jsgoupil at lookstrike dot com Operating system: WinXP Pro PHP version: 5.0.2 PHP Bug Type: GD related Bug description: imagecreate has bad output
Description: ------------ I'm currently developing a program that involves a lot of classes. When I have to draw one on an image with GD, a method one call a parent class method, and this parent another parent and on and on... If I put to many "links" of a class in another, the GD image will lose some rectangles, lines, text strings... and other rectangles appear black filled. When I change imagecreate() by imagecreatetruecolor(), it's working fine. I'm currently using WinXP with Apache2, PHP5.0.2 (php-cgi.exe) with the GD2 library php_gd2.dll (provided by PHP). I was wondering if it was a problem with memory... in php.ini, I've set the maximum memory to more than 8M but it didn't work anymore. Reproduce code: --------------- I really tried to do a little code to reproduce the error but I've spent about 2 hours in vain... My code is not free and I don't want to post it here. To whom may I send it (email... ?)? -- Edit bug report at http://bugs.php.net/?id=30508&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30508&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30508&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30508&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30508&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30508&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30508&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30508&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30508&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30508&r=support Expected behavior: http://bugs.php.net/fix.php?id=30508&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30508&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30508&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30508&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30508&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30508&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30508&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30508&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30508&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30508&r=mysqlcfg