|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63817 CreateOutline encoder argument is always NULL
Submitted: 2012-12-20 17:00 UTC Modified: 2012-12-20 17:44 UTC
From: coltware at gmail dot com Assigned: tony2001 (profile)
Status: Closed Package: haru (PECL)
PHP Version: 5.3.20 OS: Linux
Private report: No CVE-ID: None
 [2012-12-20 17:00 UTC] coltware at gmail dot com
3rd argument ( encoder ) is always ignored.
So I can NOT make japanese outline,

We call this is 'Mojibake' problem. 

Test script:
$doc = new HaruDoc();
$page = $doc->addPage();

$font = $doc->getFont("Courier-Bold");

$page->textOut(210,270,"Hello World");

$outline_ok = $doc->createOutline("TEST");

$hello_ja = mb_convert_encoding("こんにちは","SJIS-win","UTF-8");
$outline_ng = $doc->createOutline($hello_ja,null,$doc->getEncoder("90ms-RKSJ-H"));



Expected result:
zend_parse_parameters argument was wrong.

NG ) s|o!o!
OK ) s|O!O!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-20 17:39 UTC]
Automatic comment from SVN on behalf of tony2001
Log: fix bug #63817 (CreateOutline encoder argument is always NULL)
 [2012-12-20 17:44 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Indeed, thanks for reporting it!
 [2012-12-20 17:44 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: tony2001
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 13:01:27 2024 UTC