#24372 [Opn->Bgs]: imagettftext and imagefttext
| From: | nlopess@php.net | Date: | Mon, 05 Jul 2004 21:42:41 +0000 |
| Subject: | #24372 [Opn->Bgs]: imagettftext and imagefttext | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969361688@lists.php.net to get a copy of this message | ||
ID: 24372
Updated by: nlopess@php.net
Reported By: lapo at lapo dot it
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: FreeBSD 4.8
PHP Version: 4.3.2
New Comment:
I've re-checked them and they are right. If you think that's not the
case, please explain where/how the protos aren't correct.
Previous Comments:
------------------------------------------------------------------------
[2004-07-05 15:40:24] lapo at lapo dot it
No, they are not.
Not on the website, at least:
http://it2.php.net/manual/it/function.imagettftext.php
array imagettftext ( resource image, int size, int angle, int x, int y,
int color, string fontfile, string text)
http://it2.php.net/manual/it/function.imagefttext.php
array imagefttext ( resource image, int size, int angle, int x, int y,
int col, string font_file, string text [, array extrainfo])
------------------------------------------------------------------------
[2004-07-05 12:12:11] nlopess@php.net
docs are right!
------------------------------------------------------------------------
[2003-06-28 05:22:14] lapo at lapo dot it
Description:
------------
Both imagettftext and imagefttext contain at least one documentation
error:
"int size, int angle" should be "double size, double angle"
as I read in ext/gd/gd.c around line 3080:
convert_to_double_ex(PTSIZE);
convert_to_double_ex(ANGLE);
Page about imagefttext has another error:
[, array extrainfo]
but the function actualyl requires the last parameter to be present, it
isn't optional.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24372&edit=1