From: mraji_1 at yahoo dot com
Operating system: Win 2000
PHP version: 4.4.4
PHP Bug Type: COM related
Bug description: Application Error in New COM ("word.application")
Description:
------------
I am using Apache/1.3.33 (Win32) PHP/4.3.10 that was part of easyphp
When I try to instantiate the word application, I get the following
Warning :-
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
The rest of the code executes and word application opens and inserts my
text.
Thanks
Best
Raji
Reproduce code:
---------------
<?php
$word = new COM("word.application");
//die("Impossible to instantiate WordApp");
print "Word is running, version {$word->Version}\n</br>";
$word->Visible=1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("test_com_php.doc");
$word->Quit();
?>
Expected result:
----------------
No Warning messages
Actual result:
--------------
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Warning: (null)(): Type library value emptyenum is already defined and has
a different value in c:\program files\3w\www\whowhatwhere\createw.php on
line 3
Word is running, version 10.0
--
Edit bug report at http://bugs.php.net/?id=40453&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40453&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40453&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40453&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40453&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40453&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40453&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40453&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40453&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40453&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40453&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40453&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40453&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40453&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40453&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40453&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40453&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40453&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40453&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40453&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40453&r=mysqlcfg