ID:               26309
 Updated by:       [EMAIL PROTECTED]
 Reported By:      kputnam at putnamcabinets dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Debian GNU/Linux (Sid)
 PHP Version:      5.0.0b2 (beta2)
 Assigned To:      philip
 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.

"Parameter extrainfo is optional since PHP 4.3.5."

BTW patch
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.279&r2=1.280&ty=u
made superfluous optional parameter to imagettfbbox() and
imagettftext().


Previous Comments:
------------------------------------------------------------------------

[2004-07-15 01:32:57] [EMAIL PROTECTED]

Reopening until an official word exists.  I assume it's not optional
and people need to use array() for that but wonder if this requirement
has been removed in PHP 5.  Regardless this is an existing doc problem.

------------------------------------------------------------------------

[2003-11-19 10:48:01] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

This is a documentation problem.
The imagettfbbox() allows the 

------------------------------------------------------------------------

[2003-11-19 01:02:06] kputnam at putnamcabinets dot com

Description:
------------
The documentation shows that the last parameter is optional (extrainfo)
but an error is generated when it is left out. Calling with an empty
array as the last parameter resolves the issue.

Reproduce code:
---------------
$box = imageftbbox($size,$angle,$this->fonts[$font],$text);

Actual result:
--------------
PHP Warning:  Wrong parameter count for imageftbbox()


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26309&edit=1

Reply via email to