ID: 36447 Updated by: [EMAIL PROTECTED] Reported By: todd at magnifisites dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Any PHP Version: Irrelevant New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2006-02-18 20:57:19] 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); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36447&edit=1