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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sroegner at fh-lausitz dot de
New email:
PHP Version: OS:

 

 [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 15 14:01:27 2019 UTC