diff options
Diffstat (limited to 'ext/com_dotnet/tests/bug66431_1.phpt')
-rw-r--r-- | ext/com_dotnet/tests/bug66431_1.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/com_dotnet/tests/bug66431_1.phpt b/ext/com_dotnet/tests/bug66431_1.phpt index de696d6587..11b76a1546 100644 --- a/ext/com_dotnet/tests/bug66431_1.phpt +++ b/ext/com_dotnet/tests/bug66431_1.phpt @@ -5,7 +5,7 @@ Bug #66431 Special Character via COM Interface (CP_UTF8), Application.Word if (!extension_loaded("com_dotnet")){ echo "skip COM/.Net support not present"; } try { - new COM("word.application", NULL, CP_UTF8); + new COM("word.application", NULL, CP_UTF8); } catch (Exception $e) { die('skip ' . $e->getMessage()); } @@ -19,15 +19,15 @@ $fpath = str_replace("/", "\\", dirname(__FILE__) . "/bug66431.docx"); com_load_typelib('Word.Application'); -$Wrd = new COM("word.application", NULL, CP_UTF8); +$Wrd = new COM("word.application", NULL, CP_UTF8); $Wrd->Documents->Add(); -$Wrd->Selection->TypeText($text); +$Wrd->Selection->TypeText($text); $Wrd->ActiveDocument->SaveAs($fpath); $Wrd->ActiveDocument->Close(false); $Wrd->Application->Quit(); unset($Wrd); -$Wrd = new COM("word.application", NULL, CP_UTF8); +$Wrd = new COM("word.application", NULL, CP_UTF8); $Wrd->Documents->Open($fpath, NULL, false); $check_text = $Wrd->ActiveDocument->Range($Wrd->ActiveDocument->Sentences(1)->Start, $Wrd->ActiveDocument->Sentences(1)->End)->Text; $Wrd->ActiveDocument->Close(false); |