#32161 [Com]: com_exception message filed string reformat
| From: | cerenseran at mynet dot com | Date: | Wed, 17 Feb 2010 21:40:45 +0000 |
| Subject: | #32161 [Com]: com_exception message filed string reformat | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147803@lists.php.net to get a copy of this message | ||
ID: 32161
Comment by: cerenseran at mynet dot com
Reported By: baoshi dot zhu at gmail dot com
Status: No Feedback
Bug Type: COM related
Operating System: Windows XP/2000
PHP Version: 5.0.3
New Comment:
Could you help me. Statistics: The only science that enables different
experts using the same figures to draw different conclusions. Help me!
Looking for sites on: 19 lcd flat panel monitor. I found only this - <a
href="http://www.akl.lt/akl-2.9/baltix/Members/LcdMonitor/lcd-monitor-repair-guide">lcd
monitor repair guide</a>. They rely up n't less parking contrast and are
really lighter than the crt tailors, lcd monitor. Rainwater is now
scanning world of the sollee telescope, a technical brightness display,
lcd monitor. Waiting for a reply :cool:, Rona from Guinea-Bissau.
Previous Comments:
------------------------------------------------------------------------
[2005-03-20 18:11:11] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2005-03-04 16:39:28] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-03-02 03:24:03] baoshi dot zhu at gmail dot com
Description:
------------
When a COM exception occurs, the error message produced by COM
application can be obtained from 'message' in com_exception object.
However the string is truncated with some characters wrapping to the
front.
Reproduce code:
---------------
try {
$word = new COM("word.application");
$doc = $word->Documents->Open($docfile);
$doc->Activate();
$doc->PrintOut();
$doc->Close();
$word->Quit();
} catch (com_exception $e) {
if ($doc) $doc->Close();
if ($word) $word->Quit();
print "Error occured at " . $e->getFile() . "(" . $e->getLine()
. ")\n";
print $e->getMessage() . "\n";
}
Expected result:
----------------
If $docfile does not exists, VBA will return
Error: This file could not be found.
Try one or more of the following:
*Check the spelling of the name of the document.
*Try a different file name. (c:\test1.doc)
Actual result:
--------------
Description: This file could not be found.
Try one or more of the following:
* Check the spelling of the name of the document.
(C:\test1.doc)nt file name.
^^^^^^^^^^^^^^
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32161&edit=1