|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56434 page width and heigth are generated regarding to the LC settings
Submitted: 2005-06-30 11:24 UTC Modified: 2006-02-21 07:42 UTC
From: su at rtme dot net Assigned: steinm (profile)
Status: Closed Package: ps (PECL)
PHP Version: 4.3.10 OS: Debian unstable
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.
Block user comment
Status: Assign to:
Bug Type:
From: su at rtme dot net
New email:
PHP Version: OS:


 [2005-06-30 11:24 UTC] su at rtme dot net
if the php locales are setted for e.g. 'de_DE' or any language where 'decimal_point' is ',' the floats of 'width' and 'height' at 'ps_begin_page' are generated with the ',' which of course results in an invalid Postscript document.
I think this is a serious bug! 

Reproduce code:
setlocale (LC_ALL, 'de_DE.ISO_8859-1');
// or
// setlocale (LC_NUMERIC, 'de_DE.ISO_8859-1');
$ps = ps_new();
ps_open_file(  $ps, "" );
ps_begin_page($ps, 612, 792);
ps_end_page( $ps );
ps_close(  $ps );

Expected result:
Invalid Postscript document


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-21 07:42 UTC] uwe at steinmann dot cx
This should be fixed with a more recent version of pslib. pslib 0.2.6 should be fine.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jul 15 18:01:26 2020 UTC