ID: 38124 Updated by: [EMAIL PROTECTED] Reported By: boing at boing dot com Status: No Feedback Bug Type: DOM XML related Operating System: openbsd 3.8 PHP Version: 5.1.4 New Comment:
"if i switch imagefill for an imagefilledrectangle (with the image dimensions) it works fine." Thatg's expected and unrelated to the current issue. To draw a filled rectangle on an image requires no additional memory (except the heap). That's not the case for a flood fill. Previous Comments: ------------------------------------------------------------------------ [2008-01-21 11:34:45] mryaggi at hotmail dot com I have FATAL: erealloc(): Unable to allocate 2 bytes when doing : imagecreatetruecolor and then imagefill on an image I use as a brush. if i switch imagefill for an imagefilledrectangle (with the image dimensions) it works fine. Config : PHP4.4.1 on IIS7 ------------------------------------------------------------------------ [2006-07-26 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-07-18 13:01:49] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-07-18 10:51:44] boing at boing dot com Honestly, I trimmed it down as much as possible. Most of the file is the data it operates on. Some big, ugly (yes, that's redundant :) ) xml file. You should see the original code. Lot's more trash in there. Honest. :) I think the realloc() failure has something to do with the length of the file and building the sufficiently complex nested associative array uglyness. Geff ------------------------------------------------------------------------ [2006-07-18 10:23:46] [EMAIL PROTECTED] >I put the reproduce code in the original bug report Yes, I saw it. Please try to make is as smaller as you can. Currently it's just HUGE, that's why asked for a short and complete script which is max 20 lines long. Please also try the latest 5.2 snapshot which you can grab at http://snaps.php.net (wait for the next one, there was a major change in the memory manager recently). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38124 -- Edit this bug report at http://bugs.php.net/?id=38124&edit=1
