|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-10 21:27 UTC] jeremydurham at gmail dot com
[2004-11-08 12:10 UTC] john@php.net
[2013-08-16 09:56 UTC] daijie@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 19:00:01 2025 UTC |
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