#18900 [NEW]: com_invoke cannot find method

From: Date: Wed, 14 Aug 2002 10:54:33 +0000
Subject: #18900 [NEW]: com_invoke cannot find method
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16753@lists.php.net to get a copy of this message
From: mlorenz@novadys.com Operating system: Windows2000 Professional PHP version: 4CVS-2002-08-14 PHP Bug Type: COM related Bug description: com_invoke cannot find method The last line of the following script raises an error 'Unable to lookup Add' $myDMMain = new COM("DMServ.DMMain.1") or die("could not create main"); $myDMConn = $myDMMain->Login("Novadys","",1033) or die("login failed"); $myDMImporter = new COM("Documind.DmImporter.1") or die("could not create importer"); $myDMImporter->Connection = $myDMConn; $myDMImporter->Archive = "files" or die ("kacke"); $myDMImporter->JobFlags = DMDoc_Import; $DMDocList = $myDMImporter->Documents or die ("could not create doclist"); $test=com_invoke($DMDocList,"Add","c:\\test.txt"); ... It seems that the call obj = (comval *)zend_list_find(Z_LVAL_P(object), &type); returns the wrong obj because obj->resourceindex is 1 but it has been set to 4 when the entry has been created in php_COM_set. Best regards, Michael -- Edit bug report at http://bugs.php.net/?id=18900&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18900&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18900&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18900&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18900&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18900&r=support Expected behavior: http://bugs.php.net/fix.php?id=18900&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18900&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18900&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18900&r=globals

« previous php.bugs (#16753) next »