From: emile dot axelrad at connect dot co dot uk Operating system: Windows 2000 PHP version: 5.0.0 PHP Bug Type: *PDF functions Bug description: pdf_open_file requires 2 arguments where 1 should be permitted
Description: ------------ The PHP manual describes pdf_open_file as working with just one argument (the pdf handle). This code works fine with PHP 4 but on PHP 5.0.0 does not work. It thinks that the 'filename' argument is required, but it is in fact optional. Reproduce code: --------------- $pdf = pdf_new(); pdf_open_file($pdf); Expected result: ---------------- It should work without an error. Should create a PDF document in memory, not in a file. Actual result: -------------- Fatal error: Uncaught exception 'PDFlibException' with message 'pdf_open_file() expects exactly 2 parameters, 1 given' in C:\test.php:2 Stack trace: #0 {main} thrown in C:\test.php on line 2 -- Edit bug report at http://bugs.php.net/?id=29387&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29387&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29387&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29387&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29387&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29387&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29387&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29387&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29387&r=support Expected behavior: http://bugs.php.net/fix.php?id=29387&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29387&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29387&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29387&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29387&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29387&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29387&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29387&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29387&r=float