#42522 [Fbk->Opn]: imagefill not reliable
| From: | jeffiel at 9star dot com | Date: | Mon, 03 Sep 2007 09:03:16 +0000 |
| Subject: | #42522 [Fbk->Opn]: imagefill not reliable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117000@lists.php.net to get a copy of this message | ||
ID: 42522
User updated by: jeffiel at 9star dot com
Reported By: jeffiel at 9star dot com
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: FC 2
PHP Version: 5.2.4
Assigned To: pajoye
New Comment:
Yes, Fedora Core 2.
You can see the issue at this URL:
http://media.9star.com/dynamizer/test.php
To see the page's source, append a source param:
http://media.9star.com/dynamizer/test.php?source
To see the gd_info output, append a gdinfo:
http://media.9star.com/dynamizer/test.php?gdinfo
Previous Comments:
------------------------------------------------------------------------
[2007-09-03 08:14:43] pajoye@php.net
"The problem is not consistent, but happens about 90% of the time. I
don't see any pattern to it."
It happens zero times here on many platforms (windows, linux, osx).
What is FC2? Fedora Core 2?
------------------------------------------------------------------------
[2007-09-03 05:41:01] jeffiel at 9star dot com
As noted, the bundled version. Here's my configure line:
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-
mysql=/usr/local/mysql-standard-5.0.19-linux-i686-glibc23' '--
with-gd' '--with-png-dir=/usr/local/lib' '--with-jpeg-
dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-zlib-
dir=/usr/local/lib' '--enable-simplexml' '--with-xsl=/usr/local/lib'
'--with-ldap=/usr/local/openldap' '--with-ldap-sasl' '--with-
openssl=/usr/local/ssl' '--with-gettext=/usr/local' '--with-
mcrypt=/usr/local' '--with-mime-magic' '--enable-bcmath' '--with-
oci8=/opt/oracle/product/9.2.0/' '--with-curl=/usr'
The problem is not consistent, but happens about 90% of the time. I
don't see any pattern to it.
My current workaround is using imagefilledrectangle instead, which
works reliably.
------------------------------------------------------------------------
[2007-09-03 05:27:32] pajoye@php.net
I can't reproduce this problem. Do you use the bundled version or an
external library? If you use an external library, which version? (you
can see it in your phpinfo or using gdlib-config --version).
To configure php to use the bundled gd version, use "./configure
--with-gd ..." (without argument).
------------------------------------------------------------------------
[2007-09-02 21:48:47] jeffiel at 9star dot com
Description:
------------
Just upgraded to 5.2.4, and GD image functions, particularly imagefill,
is not reliable. Sometimes it works, sometimes it fails silently.
Using [GD Version] => bundled (2.0.34 compatible). Seems similar to
bug
#36683, which was marked as bogus for unspecified reasons.
Reproduce code:
---------------
$im = imagecreatetruecolor(625, 26);
imagefill($im, 0, 0, imagecolorallocate($im, 255, 0, 0));
header("Content-type: image/png");
imagepng($im);
Expected result:
----------------
A red png, 625 x 26
Actual result:
--------------
A black png, 625 x 26
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42522&edit=1