PHP4 Bug #1807: php crashes with the attached little program
| From: | oliver at billix dot franken dot de | Date: | Wed, 21 Jul 1999 19:54:04 +0000 |
| Subject: | PHP4 Bug #1807: php crashes with the attached little program | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8914@lists.php.net to get a copy of this message | ||
From: oliver@billix.franken.de
Operating system: linux
PHP version: 4.0 Beta 1
PHP Bug Type: Reproduceable crash
Bug description: php crashes with the attached little program
script:
=======
<?php
Header ( "Content-type: image/gif" );
$img = ImageCreate ( 100 , 100 );
$gray = ImageColorAllocate ( $img , 233 , 233 , 233 );
$black = ImageColorAllocate ( $img , 0 , 0 , 0 );
ImageFilledRectangle ( $img , 0 , 0 , 99 , 99 , $gray );
$punkte = array ( 20 , 10 , 80 , 30 , 20 , 50 );
ImageFilledPolygon ( $img , $punkte , 3 , $black );
/*
ImageGif ( $img );
ImageDestroy ( $img );
*/
?>
output:
=======
Content-type: image/gif
<br>
<b>Warning</b>: Cannot convert to ordinal value in <b>fehler-bild.phtml</b>
on line <b>12</b><br>
<br>
<b>Warning</b>: Cannot convert to ordinal value in <b>fehler-bild.phtml</b>
on line <b>12</b><br>
<br>
<b>Warning</b>: Cannot convert to ordinal value in <b>fehler-bild.phtml</b>
on line <b>12</b><br>
<br>
<b>Warning</b>: Cannot convert to ordinal value in <b>fehler-bild.phtml</b>
on line <b>12</b><br>
<br>
<b>Warning</b>: Cannot convert to ordinal value in <b>fehler-bild.phtml</b>
on line <b>12</b><br>
<br>
<b>Warning</b>: Cannot convert to ordinal value in <b>fehler-bild.phtml</b>
on line <b>12</b><br>
Segmentation fault (core dumped)