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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: oliver at billix dot franken dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-23 12:02 UTC] zeev at cvs dot php dot net
Reproduced & fixed - thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC