php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29235 "optional" function parameters are now required
Submitted: 2004-07-18 02:37 UTC Modified: 2004-08-19 09:20 UTC
From: faxguy at howardsilvan dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.8 OS: Linux 2.4.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: faxguy at howardsilvan dot com
New email:
PHP Version: OS:

 

 [2004-07-18 02:37 UTC] faxguy at howardsilvan dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-18 18:47 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a problem with the PDF extension distributed by the 
libpdf folks, it does not affect the ext/pdf in php 
sources. 
 [2004-08-19 09:20 UTC] vrana@php.net
It's now documented.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Aug 07 10:00:03 2025 UTC