From:             [EMAIL PROTECTED]
Operating system: Sparc Solaris 8
PHP version:      4.0.6
PHP Bug Type:     *Graphics related
Bug description:  Image broken


header ("Content-type: image/png");
$im = @ImageCreate (50, 100)
    or die ("Cannot Initialize new GD image stream");
    $background_color = ImageColorAllocate ($im, 255, 255, 255);
    $text_color = ImageColorAllocate ($im, 233, 14, 91);
    ImageString ($im, 1, 5, 5,  "test", $text_color);
    ImagePng ($im);


    <img src=test.php>


gd-1.8.4, apache-1.3.20, php-4.0.6

        --with-oci8 \
        --with-db3 \
        --with-gd \
        --with-png-dir=/usr/local/lib \
        --with-zlib-dir=/usr/local/lib \
        --enable-inline-optimization \
        --enable-bcmath \
        --with-gettext \
        --with-mcal=/usr/local/mcal \
        --with-mcrypt \
        --disable-debug \

When the Image (test.php) is referenced by a html file (test.html) it is
shown as broken in the browser window.

When calling test.php directly the Image is shown correctly, but by
shift-reloading the page (test.php) the image is broken again (a normal
reload shows the image).

It did not occur with php-4.0.5
Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to