From:             massimo dot ferrario at inforeti dot it
Operating system: linux
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  wrong parametr number for pdf functions

Description:
------------
I'm getting a lot of warning/errors from pdf related functions after
upgrading to php 4.4.0. It appears that at least some of the changes
reported in the documentation were backported from version 5 to version
4.4.

Compare for instance the following warning:
PHP Warning:  pdf_stringwidth() expects exactly 4 parameters, 2 given in
MYFILE on line MYLINE

with what is written in the online docs at
http://www.php.net/manual/en/function.pdf-stringwidth.php

float pdf_stringwidth ( resource pdfdoc, string text, int font, float size
)
Returns the width of text using the last font set by pdf_setfont(). If the
optional parameters font and size are specified, the width will be
calculated using that font and size instead. Please note that font is a
font handle returned by pdf_findfont(). Parameters font and size were
optional before PHP 5.




-- 
Edit bug report at http://bugs.php.net/?id=33818&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33818&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33818&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33818&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33818&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33818&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33818&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33818&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33818&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33818&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33818&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33818&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33818&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33818&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33818&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33818&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33818&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33818&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33818&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33818&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33818&r=mysqlcfg

Reply via email to