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
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:
MUST BE VALID
Solve the problem:
28 + 12 = ?
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);
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 07:01:31 2024 UTC