Click to See Complete Forum and Search --> : COM broken in PHP4.3.x ?


Anon
07-03-2002, 01:27 PM
Hi,

the standard example for creating an interface to a Word COM object from the manual doesn't work in PHP4.3.
The source

$word = new COM("Word.Application") or die("Unable to instantiate Word");
print "Loaded Word, version {$word->Version}\n";

Yields:

Loaded Word, version
Fatal error: Call to a member function on a non-object in e:\wwwroot\index.php on line 12

Anyone?

Anon
07-03-2002, 02:52 PM
Maybe it's a bug? PHP 4.3.0 still is Alpha 2!! Post your bug @ php.net