From:             todd at magnifisites dot com
Operating system: Any
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  imagefill page, example one has invalid parameter count

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);
?> 


-- 
Edit bug report at http://bugs.php.net/?id=36447&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36447&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36447&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36447&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36447&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36447&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36447&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36447&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36447&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36447&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36447&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36447&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36447&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36447&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36447&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36447&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36447&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36447&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36447&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36447&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36447&r=mysqlcfg

Reply via email to