From: pdowson at aea9 dot k12 dot ia dot us Operating system: FreeBSD 5.2 PHP version: 4.3.8 PHP Bug Type: *PDF functions Bug description: pdf_open_file() expects exactly 2 parameters, 1 given
Description: ------------ The PHP manual describes pdf_open_file as working with just one argument (the pdf handle). The code works fine if you supply a filename as the second argument. 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: -------------- Warning: pdf_open_file() expects exactly 2 parameters, 1 given in /home/wwwpath/pdf.php on line 2 -- Edit bug report at http://bugs.php.net/?id=30041&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30041&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30041&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30041&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30041&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30041&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30041&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30041&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30041&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30041&r=support Expected behavior: http://bugs.php.net/fix.php?id=30041&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30041&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30041&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30041&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30041&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30041&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30041&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30041&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30041&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30041&r=mysqlcfg