Re: [PHP4BETA] COM problems
| From: | gus | Date: | Sun, 19 Dec 1999 14:15:45 +0000 |
| Subject: | Re: [PHP4BETA] COM problems | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-8167@lists.php.net to get a copy of this message | ||
The problem is in COM.c in the php_variant_to_pval function:
case VT_UNKNOWN:
case VT_DISPATCH:
/* possibly, return IDispatch as a new COM object. right now -
just get rid of it */
var_arg->pdispVal->lpVtbl->Release(var_arg->pdispVal);
var_reset(pval_arg);
break;
Of course IDispatch should be returned here as a new COM object. I
really have NO experience in PHP development but couldn't it be
implemented like that:
int retval = php3_list_insert(var_arg->pdispVal,le_idispatch);
*pval_arg = *retval;
I suppose I have to install my VC right now... ;-)
Guido
> Zeev Suraski wrote:
> > It's possible that it is a bug (or most probably, a yet missing
> > feature). The COM module doesn't yet support all of the different
> > types of the VARIANT type, which could result in this behavior.
> > If you have warnings set to E_ALL, then you should be seeing
> > warnings about unknown types.