ID:               37899
 User updated by:  okumurya at gmail dot com
-Reported By:      okumurya at hotmail dot com
+Reported By:      okumurya at gmail dot com
-Status:           No Feedback
+Status:           Open
 Bug Type:         COM related
 Operating System: Windows 2000 Professional
-PHP Version:      4.4.2
+PHP Version:      4.4.2, 4.4.7
 Assigned To:      wez
 New Comment:

I tested following code on PHP-4.4.7, the problem still occured.

<?php
/*
 * via: http://ml.php.gr.jp/pipermail/php-users/2007-April/032463.html
 */
ini_set('mbstring.language', 'Japanese');
ini_set('mbstring.internal_encoding', 'UTF-8');

class setWord {
        var $Word;
        var $doc;
 
        function setWord(){
                $this->Word = new COM('Word.Application');
                $this->Word->Visible = false;
                $this->Word->DisplayAlerts = 0;
        }
 
        function documentOpen(){
                $this->doc = $this->Word->Documents->Add();
                $this->doc->Activate;
        }
 
        function setParam($param){
                $this->Word->Selection->TypeText($param);
        }
 
        function SaveAs(){
                $this->Word->Documents[1]->SaveAs("C:/TMP/hoge.doc");
        }
 
        function unsetObj(){
                $this->Word->Documents[1]->Close();
                $this->Word->Quit();
                $this->Word = null;
        }
 
        function returnWord($param){
                $this->documentOpen();
                $this->setParam($param);
                $this->SaveAs();
                $this->unsetObj();
        }
}

$cls = new setWord();
$cls->returnWord("\x82\xA0\x82\xA2\x82\xA4\x82\xA6\x82\xA8"); //
Japanese Hiragana A I U E O
?>


Previous Comments:
------------------------------------------------------------------------

[2007-07-19 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-07-11 12:49:49] [EMAIL PROTECTED]

And does this problem exist in PHP 5.2.3? (see also previous comment by
Stas)

------------------------------------------------------------------------

[2007-04-02 20:29:11] [EMAIL PROTECTED]

Could you provide some example reproducing the problem? Preferably with
some COM available on standard Windows/Office machine or easily
installable.

------------------------------------------------------------------------

[2007-03-05 22:43:52] okumurya at hotmail dot com

Hello fjortiz

> did your last patch work for you?

Yes my patch works.

------------------------------------------------------------------------

[2007-02-26 13:03:29] fjortiz at comunet dot es

Any updates on this issue?. We tracked down one problem we had with
ADODBCommand COM objects and Russian UTF-8 strings and found this was
the bug that was causing it. 

Mr. Okumurya, please one question: did your last patch work for you?

Thanks in advance.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/37899

-- 
Edit this bug report at http://bugs.php.net/?id=37899&edit=1

Reply via email to