php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1807 php crashes with the attached little program
Submitted: 1999-07-21 15:54 UTC Modified: 1999-07-23 12:02 UTC
From: oliver at billix dot franken dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 1 OS: linux
Private report: No CVE-ID: None
 [1999-07-21 15:54 UTC] oliver at billix dot franken dot de
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-23 12:02 UTC] zeev at cvs dot php dot net
Reproduced & fixed - thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC