|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: graeme at inetix dot com dot au
New email:
PHP Version: OS:


 [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: Wed May 29 07:01:34 2024 UTC