#49613 [Opn->Csd]: imagettfbbox(): Undocumented return value
| From: | fa@php.net | Date: | Fri, 02 Oct 2009 21:04:09 +0000 |
| Subject: | #49613 [Opn->Csd]: imagettfbbox(): Undocumented return value | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2874@lists.php.net to get a copy of this message | ||
ID: 49613
Updated by: fa@php.net
Reported By: bugs dot php at luden dot se
-Status: Open
+Status: Closed
Bug Type: Documentation problem
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:
------------------------------------------------------------------------
[2009-10-02 21:03:48] svn@php.net
Automatic comment from SVN on behalf of fa
Revision: http://svn.php.net/viewvc/?view=revision&revision=289104
Log: added return "false" on error - fix #49613 (the sequel)
------------------------------------------------------------------------
[2009-10-02 21:01:48] svn@php.net
Automatic comment from SVN on behalf of fa
Revision: http://svn.php.net/viewvc/?view=revision&revision=289103
Log: added return value "false" and table header - fix #49613
------------------------------------------------------------------------
[2009-09-21 13:18:06] bugs dot php at luden dot se
Description:
------------
The GD functions imagettfbbox() returns FALSE for various errors
such as a missing $fontfile. This return value is undocumented at:
<http://se2.php.net/manual/en/function.imagettfbbox.php>
Same problem for imagettftext():
<http://se2.php.net/manual/en/function.imagettftext.php>
(The results are from PHP 5.2.5 but recently downloaded source
code for 5.3.0 contain several RETURN_FALSE.)
Reproduce code:
---------------
<?php
$r = imagettfbbox (10, 0, 'no-such-font.ttf', 'Test string');
echo PHP_VERSION, "\n";
var_dump ($r);
Expected result:
----------------
5.2.5
bool(false)
Actual result:
--------------
5.2.5
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49613&edit=1