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
 [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

Pull Requests

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 Dec 26 10:01:29 2024 UTC