#24372 [Bgs->Opn]: imagettftext and imagefttext
| From: | lapo at lapo dot it | Date: | Mon, 05 Jul 2004 13:40:25 +0000 |
| Subject: | #24372 [Bgs->Opn]: imagettftext and imagefttext | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969361674@lists.php.net to get a copy of this message | ||
ID: 24372
User updated by: lapo at lapo dot it
Reported By: lapo at lapo dot it
-Status: Bogus
+Status: Open
Bug Type: Documentation problem
Operating System: FreeBSD 4.8
PHP Version: 4.3.2
New Comment:
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])
Previous Comments:
------------------------------------------------------------------------
[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