Ahh, this problem. Andi: remember that we discussed this in the past? Is a solution possible using the get_property_ptr object handlers, or not possible at all?
--Wez. ----- Original Message ----- From: "Daniel Daley" <[EMAIL PROTECTED]> To: "Wez Furlong" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 11:35 AM Subject: Re: [PHP-DEV] Perl extension > Wez Furlong wrote: > > >So you totally missed the completely new COM and .Net support in PHP 5 ? :-) > > > > > > > > As far as I've seen the new COM support has yet to allow for setting > properties with arguments and as the equivalent asp syntax is not valid > php syntax I'm pretty sure it would require a new function in order to > implement it. > > Example ASP syntax: > Set comobj = Server.CreateObject("MyComLib.ComLib") > comobj.Property("Record") = "otherdata" > > PHP Syntax: > $comobj = &new COM('MyComLib.ComLib'); > $comobj->Property("Record") = "otherdata"; // This will fail > > The last line will fail with PHP Fatal error: Can't use method return > value in write context > If you do know of a way to do this with native PHP COM support I'd love > to use it instead. > > Thanks, > > --Dan-- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php