ID: 39031
Updated by: [EMAIL PROTECTED]
Reported By: vijijvs at yahoo dot co dot in
Status: Open
Bug Type: Documentation problem
Operating System: Mandrake Linux
PHP Version: Irrelevant
New Comment:
According to the source (gd.c):
ifdef ENABLE_GD_TTF
PHP_FE(imagettfbbox, arginfo_imagettfbbox)
PHP_FE(imagettftext, arginfo_imagettftext)
#if HAVE_LIBFREETYPE && HAVE_GD_STRINGFTEX
PHP_FE(imageftbbox,
arginfo_imageftbbox)
PHP_FE(imagefttext,
arginfo_imagefttext)
#endif
#endif
Currently both imageftbbox() and imagefttext() have the undocumented
status so essentially this bug report asks them to be documented. There
are currently ~700* functions with the undocumented status but let's
leave this one open anyways...
* http://doc.php.net/php/undoc_functions.php
Previous Comments:
------------------------------------------------------------------------
[2006-10-04 17:07:36] judas dot iscariote at gmail dot com
Your PHP is compiled against a GD version that doesn't support this.
what gdinfo says ?
<?php
var_dump(gd_info());
?>
------------------------------------------------------------------------
[2006-10-04 06:52:03] vijijvs at yahoo dot co dot in
Description:
------------
I get a fatal error:
Fatal error: Call to undefined function: imageftbbox()in php4.3.9 even
though other image functions are working.
Reproduce code:
---------------
$fontSize = 5;
$lineSpacing = 1;
list($llx, $lly, $lrx, $lry, $urx, $ury, $ulx, $uly) =
imageftbbox($fontSize, 0, $fontFileName, $text, array("linespacing" =>
$lineSpacing));
$textWidth = $lrx - $llx;
$textHeight = $lry - $ury;
$angle = 0;
Actual result:
--------------
Fatal error: Call to undefined function: imageftbbox()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39031&edit=1