|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10334 Incorrect paramters for pdf_setdash
Submitted: 2001-04-15 10:11 UTC Modified: 2001-06-15 06:44 UTC
From: graeme at inetix dot com dot au Assigned:
Status: Closed Package: PDF related
PHP Version: 4.0 Latest CVS (15/04/2001) OS: Linux-i386
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
1 + 15 = ?
Subscribe to this entry?

 [2001-04-15 10:11 UTC] graeme at inetix dot com dot au
According to the docs for pdflib pdf_setdash should have the following parameters: void PDF_setdash(PDF *p,float b,float w)

In the PHP sources white and black have been transposed to to 
pdf_setdash(int pdfdoc, double white, double black)

When using the function going from
pdf_setdash($pdf, 10, 5);
pdf_setdash($pdf, 20, 5);

rather then the length of the white dash portion increasing, the length of the black increases instead.

The proto desc for the function just needs to be updated. Also filing a documentation bug.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-15 06:44 UTC]
Proto fixed in CVS. Docs are ok.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 23:01:36 2024 UTC