php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36447 imagefill page, example one has invalid parameter count
Submitted: 2006-02-18 20:57 UTC Modified: 2006-02-18 21:14 UTC
From: todd at magnifisites dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
 [2006-02-18 20:57 UTC] todd at magnifisites dot com
Description:
------------
Example 1 has an invalid parameter count in the documentation.  The line reading ...
$im = imagecreatetruecolor('example.jpg', 100, 100);
... is in error.

Expected result:
----------------
A working example:

<?php
$im = imagecreatetruecolor(100, 100);
// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);
header("Content-type: image/png"); 
imagepng($im);
imagedestroy($im);
?> 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-18 21:14 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a08054a05e9eba7fb18b9e9a2d94bf476ae06bb6
Log: fix #36447: example doesnt work
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 22:01:31 2025 UTC