php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #654 Server hangs on calling the following script ( goes to 100% swap )
Submitted: 1998-08-14 05:48 UTC Modified: 1998-09-02 16:31 UTC
From: sroegner at fh-lausitz dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.2a OS: Linux 2.0.34
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 41 = ?
Subscribe to this entry?

 
 [1998-08-14 05:48 UTC] sroegner at fh-lausitz dot de
php is compiled with the following options:
--with-adabas --with-unified-odbc --with-apache=../apache1.3.1 --enable-track-vars

script image.phtml ( one of my first try's )

<HTML><HEAD><TITLE>
Test der Imagefunktionen von php3
</TITLE>
<BODY>

<H1>Test mit Image-Funktionen<H1>

<HR>
<?
  $name = "Hallo.gif";
  $pic = imagecreate( 40, 40);
  imagefill( $pic, 40, 40, 10);
  imagegif( $pic, $name );
  echo "<IMG SRC=\"$name\" BORDER=\"2\" ALT=\"Mein Testbild\">";
  ?>
</BODY>
</HTML>         

On calling this file, my server completely hangs 
( cpu- and memory usage of the process httpd get very high ...) 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-02 16:31 UTC] zeev
That is a bug in the GD library, at least version 1.2.
If the center of imagefill is specified at the border
of the image, gdImageFill() stucks (any other value,
in this case larger or smaller than 40, would work).
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 04:01:25 2019 UTC