[PHP-DEV] Bug #12138 Updated: Image broken

2001-07-23 Thread andy

ID: 12138
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: *Graphics related
Operating System: Sparc Solaris 8
PHP Version: 4.0.6
New Comment:

I was not able to reproduce this error, and think that it is bogus
(or is a problem with his browser.)Can anyone else verify
this?

Previous Comments:


[2001-07-21 20:42:20] [EMAIL PROTECTED]

Are you saying that the image works fine when it is
requested by itself (test.php), but not when it is
referenced by a html page (test.html)?



[2001-07-13 07:07:04] [EMAIL PROTECTED]

test.php

?php
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);
ImageDestroy($im);
?


test.html

html
headtitletest/title/head
body
Hellobrbr
img src=test.php
/body
/html

Configuration:

gd-1.8.4, apache-1.3.20, php-4.0.6

  ./configure\
--without-mysql\
--with-oci8 \
--with-oracle\
--with-imap\
--with-ldap\
--with-db3 \
--enable-sysvsem\
--enable-sysvshm\
--with-mm=/usr/local\
--enable-track-vars\
--enable-trans-sid\
--enable-shmop\
--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 \
--with-apxs=/usr/local/apache/bin/apxs

Desc:
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 this bug report at http://bugs.php.net/?id=12138edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12138 Updated: Image broken

2001-07-21 Thread andy

ID: 12138
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: *Graphics related
Operating System: Sparc Solaris 8
PHP Version: 4.0.6
New Comment:

Are you saying that the image works fine when it is
requested by itself (test.php), but not when it is
referenced by a html page (test.html)?

Previous Comments:


[2001-07-13 07:07:04] [EMAIL PROTECTED]

test.php

?php
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);
ImageDestroy($im);
?


test.html

html
headtitletest/title/head
body
Hellobrbr
img src=test.php
/body
/html

Configuration:

gd-1.8.4, apache-1.3.20, php-4.0.6

  ./configure\
--without-mysql\
--with-oci8 \
--with-oracle\
--with-imap\
--with-ldap\
--with-db3 \
--enable-sysvsem\
--enable-sysvshm\
--with-mm=/usr/local\
--enable-track-vars\
--enable-trans-sid\
--enable-shmop\
--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 \
--with-apxs=/usr/local/apache/bin/apxs

Desc:
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 this bug report at http://bugs.php.net/?id=12138edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]