#26309 [Csd->Opn]: imageftbbox() requires the optional parameter

From: Date: Wed, 14 Jul 2004 23:33:01 +0000
Subject: #26309 [Csd->Opn]: imageftbbox() requires the optional parameter
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969361866@lists.php.net to get a copy of this message
ID: 26309 Updated by: philip@php.net Reported By: kputnam at putnamcabinets dot com -Status: Closed +Status: Open Bug Type: Documentation problem Operating System: Debian GNU/Linux (Sid) PHP Version: 5.0.0b2 (beta2) -Assigned To: +Assigned To: philip New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-11-19 10:48:01] iliaa@php.net 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

« previous php.doc (#969361866) next »