Bug #13253 Updated: COM() generates NULL pointer exception

From: Date: Fri, 14 Sep 2001 20:40:37 +0000
Subject: Bug #13253 Updated: COM() generates NULL pointer exception
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65957@lists.php.net to get a copy of this message
ID: 13253 Updated by: phanto Reported By: will@okino.com Old Status: Open Status: Closed Bug Type: COM related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: Wordpad.Document has no interfaces derived from IDispatch thus it can't be accessed through php. the error message doesn't say what it is supposed to say, but this is fixed in php 4.0.7. you will get "C:\devel\developers handbook\test.php(3) : Warning - Unable to obtain IDispatch interface for CLSID {73FDDC80-AEA9-101A-98A7-00AA00374959}: Interface not supported" now. Previous Comments: ------------------------------------------------------------------------ [2001-09-11 16:48:27] will@okino.com I found that COM was giving NULL pointer exceptions for some programs and not others. I tried the following script: <? $quota = new COM("Microsoft.DiskQuota.1"); $wordpad = new COM("Wordpad.Document.1"); ?> and got: Fatal error: NULL pointer exception in D:\Inetpub\polytranslive\comtest.php on line 3 I even found that sometimes one instance would work, and another wouldn't, both on the same COM server. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13253&edit=1

« previous php.dev (#65957) next »