php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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);
to
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Sep 29 05:01:24 2020 UTC