Doc #64622 [Opn->Csd]: The variable $color_fondo, is not used.

From: Date: Sun, 29 Mar 2015 10:07:09 +0000
Subject: Doc #64622 [Opn->Csd]: The variable $color_fondo, is not used.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12060@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64622&edit=1

 ID:                 64622
 Updated by:         kalle@php.net
 Reported by:        noel_fb at hotmail dot com
 Summary:            The variable $color_fondo, is not used.
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   Windows
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        kalle
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2013-05-06 16:30:57] noel_fb at hotmail dot com

Hi Pete,
"the addition of this is necessary for the example to work."
Really?
If is not used, I do not give an error when we delete it.

But, Ok. Tanks!, Close the bug.
See you!

------------------------------------------------------------------------
[2013-05-06 12:00:10] pete at petermcdonald dot co dot uk

Hi Noel

There is nothing actually to fix. The $color_mondo variable sets the black background color that
shows in the example image. I understand the example is slightly confusing but the addition of this
is necessary for the example to work.

The inclusion of $color_mondo is in line with the behaviour of imagecolorallocate()

------------------------------------------------------------------------
[2013-05-06 11:41:39] noel_fb at hotmail dot com

Can I help to solve de fix? Or i'm not access to edith the example?

------------------------------------------------------------------------
[2013-05-06 00:41:16] pete at petermcdonald dot co dot uk

To further my previous comment this behaviour is explained in the documentation on 
imagecolorallocate

"The first call to imagecolorallocate() fills the background color in palette-
based images - images created using imagecreate()."
  
http://uk3.php.net/manual/en/function.imagecolorallocate.php

------------------------------------------------------------------------
[2013-05-06 00:37:02] pete at petermcdonald dot co dot uk

The colour specified by $color_fondo is setting the background colour as can be 
demonstrated by using the sample code then changing the numerical values.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=64622


--
Edit this bug report at https://bugs.php.net/bug.php?id=64622&edit=1


Thread (7 messages)

« previous php.doc.bugs (#12060) next »