|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-14 20:26 UTC] phanto@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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