#29235 [NEW]: "optional" function parameters are now required
| From: | faxguy at howardsilvan dot com | Date: | Sun, 18 Jul 2004 00:37:16 +0000 |
| Subject: | #29235 [NEW]: "optional" function parameters are now required | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-62555@lists.php.net to get a copy of this message | ||
From: faxguy at howardsilvan dot com
Operating system: Linux 2.4.20
PHP version: 4.3.8
PHP Bug Type: *PDF functions
Bug description: "optional" function parameters are now required
Description:
------------
Recently upgraded to using PHP 4.3.8 and PDFlib 6.0.0p1.
Suddenly I need to supply all of the "optional" parameters to the PDF
functions. Very frustrating.
Reproduce code:
---------------
$foo = pdf_stringwidth($pdf, "foo");
Expected result:
----------------
No error message saying that 4 parameters are required.
Actual result:
--------------
I get an error message requiring all 4 parameters, the last two of which
are optional.
--
Edit bug report at http://bugs.php.net/?id=29235&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29235&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29235&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29235&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29235&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29235&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29235&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29235&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29235&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29235&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29235&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29235&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29235&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29235&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29235&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29235&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29235&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29235&r=float