#30041 [Opn->Fbk]: pdf_open_file() expects exactly 2 parameters, 1 given

From: Date: Wed, 15 Sep 2004 08:50:13 +0000
Subject: #30041 [Opn->Fbk]: pdf_open_file() expects exactly 2 parameters, 1 given
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66193@lists.php.net to get a copy of this message
ID: 30041 Updated by: sniper@php.net Reported By: pdowson at aea9 dot k12 dot ia dot us -Status: Open +Status: Feedback -Bug Type: *PDF functions +Bug Type: PDF related Operating System: FreeBSD 5.2 PHP Version: 4.3.8 New Comment: Are you REALLY using PHP 4.3.8 ? As in PHP _5_ the 2nd parameter IS required. This works fine for me with PHP 4.3.8 with just one parameter. Previous Comments: ------------------------------------------------------------------------ [2004-09-09 21:00:19] pdowson at aea9 dot k12 dot ia dot us 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 this bug report at http://bugs.php.net/?id=30041&edit=1

« previous php.bugs (#66193) next »