Re: PHP 4.0 Bug #7691: unable to pass an array to COM object.
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 08 Nov 2000 14:28:48 +0000 |
| Subject: | Re: PHP 4.0 Bug #7691: unable to pass an array to COM object. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37433@lists.php.net to get a copy of this message | ||
On 8 Nov 2000 jerry@jcj.net wrote:
> From: jerry@jcj.net
> Operating system: Windows 2000
> PHP version: 4.0.3pl1
> PHP Bug Type: COM related
> Bug description: unable to pass an array to COM object.
>
> I find that COM support apparently doesn't include the ability to pass an array to a COM
> object. I'd program this into PHP myself if I had a clue how to do it....so all us COM people
> suffering with Windows are at the developer's mercy on this one.
>
Oh, it's not too difficult; all you have to do is extend
php_pval_to_variant() in ext/com/COM.c to handle converting zval hash
tables into VT_ARRAYs, and extend php_variant_to_pval() to do the
opposite. The actual implementation of said is left as an exercise for the
reader :)
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>