php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48382 man page error.
Submitted: 2009-05-25 09:55 UTC Modified: 2009-05-25 18:16 UTC
From: qasimtoep at phxcc dot com Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: qasimtoep at phxcc dot com
New email:
PHP Version: OS:

 

 [2009-05-25 09:55 UTC] qasimtoep at phxcc dot com
Description:
------------
probable error / typo in man page: example php code.

Reproduce code:
---------------
---
From manual page: image.examples.merged-watermark
---

// First we create our stamp image manually from GD
$stamp = imagecreatetruecolor(100, 70);
imagefilledrectangle($stamp, 0,0, 99, 99, 0x0000FF);


Expected result:
----------------
The example code (line 6) shows an image 100x70 created.
But the next line (line7) shows a rectangle created 100x100 within that image. I think that it should create a 100x70 rectangle with ($stamp, 0,0, 99, 69, 0x0000FF)

The example resulting gif has a rectangle that corresponds to this size.

* also note, your issue reporting interface is the best I have ever used on the web :)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-25 18:16 UTC] kalle@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:10 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=9836428a4c7d7f92cffc7195991eff2e9849d2d1
Log: Fixed #48382 (man page error.)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 21:00:02 2026 UTC