From: [EMAIL PROTECTED] Operating system: WIN2K PHP version: 4.1.2 PHP Bug Type: COM related Bug description: Wrong object type returned
I have the following code which tries to execute a stored procedure using ADODB created using COM. The ad Constants and strConnect have been defined in an include file. $objCommand = new COM ("ADODB.Command"); $objCommand -> ActiveConnection = strConnect; $objCommand -> CommandText = "someStoredProc"; $objCommand -> CommandType = adCmdStoredProc; $objParam = $objCommand -> CreateParameter("strAction", adVarChar, adParamInput, 1); $objCommand -> Parameters -> Append($objParam); $objParam = $objCommand -> CreateParameter("intCategoryID", adInteger, adParamInput, 4); $objCommand -> Parameters -> Append($objParam); $objParam = $objCommand -> CreateParameter("strCategory", adVarChar, adParamInput, 100); $objCommand -> Parameters -> Append($objParam); $clnParameter = $objCommand -> Parameters; echo gettype($clnParameter); The display says $clnParameter is an object, while ADODB documentation says "Parameters" is a collection of Parameter object. -- Edit bug report at http://bugs.php.net/?id=16649&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16649&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16649&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16649&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16649&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16649&r=support Expected behavior: http://bugs.php.net/fix.php?id=16649&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16649&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16649&r=submittedtwice