[PL #8279] server on fc4 - php patch

Thierry Parmentelat via RT devel at planet-lab.org
Fri Nov 25 03:29:11 EST 2005


Email Recipients (see http://www.planet-lab.org/Support)
       Requestor: Thierry.Parmentelat at sophia.inria.fr


==================================================

Fri Nov 25 03:29:11 2005: Request 8279 was acted upon.
Transaction: Ticket created by Thierry.Parmentelat at sophia.inria.fr

Subject: server on fc4 - php patch

I dont run any fc4 server anymore, because it makes my life uselessly uneasy

so for the record only
here is a patch I have in my fc4-based plc server
without this patch I got spammed with errors reported by the cron job 
that regenerates static web contents
go figure

# cd /planetlab/plc_www/php
# cvs diff -c clusterbw.php
Index: clusterbw.php
===================================================================
RCS file: /cvs/plc_www/php/clusterbw.php,v
retrieving revision 1.15
diff -c -r1.15 clusterbw.php
*** clusterbw.php       5 Oct 2005 04:40:33 -0000       1.15
--- clusterbw.php       25 Nov 2005 08:24:06 -0000
***************
*** 142,148 ****
  $newhsize = $oldhsize * $worldscale;
  $newvsize = $oldvsize * $worldscale;

! $imnew = ImageCreate($newhsize,$newvsize);
  $color5 = imagecolorallocate($imnew,255,0,0);
  $color4 = imagecolorallocate($imnew,255,102,0);
  $color3 = imagecolorallocate($imnew,255,153,0);
--- 142,148 ----
  $newhsize = $oldhsize * $worldscale;
  $newvsize = $oldvsize * $worldscale;

! $imnew = @imagecreate($newhsize,$newvsize);
  $color5 = imagecolorallocate($imnew,255,0,0);
  $color4 = imagecolorallocate($imnew,255,102,0);
  $color3 = imagecolorallocate($imnew,255,153,0);




More information about the Devel-community mailing list