Bug #15655: Variant type & COM objects
| From: | bartek at vemco dot pl | Date: | Thu, 21 Feb 2002 09:46:02 +0000 |
| Subject: | Bug #15655: Variant type & COM objects | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-720@lists.php.net to get a copy of this message | ||
From: bartek@vemco.pl
Operating system: WinNT SP6
PHP version: 4.1.1
PHP Bug Type: COM related
Bug description: Variant type & COM objects
I have 2 COM objects and I want to pass 1 of them to another by reference.
Apache 1.3.23
<?
//first object is ADODB.recordset
$recordset= new COM("ADODB.Recordset") or die("recodset down");
//I want this object to be passed by reference so i declare Variant type
$rs=new Variant($recordset);
//below lines are unimportant because I got Internal Server ERROR here
$object2= new COM("object.object") or die ("object down");
$object2->ddw("sterfind",$rs);
?>
when I declare $rs = new Variant() or $rs= new Variant(VT_DISPATCH) then
script works but object2 reports type mismatch
error_log raports: Premature end of script headers: c:/php/php.exe
--
Edit bug report at http://bugs.php.net/?id=15655&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15655&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15655&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15655&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15655&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15655&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15655&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15655&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15655&r=submittedtwice