RE: [PHP4BETA] COM methods fail
| From: | Tom O'Hare | Date: | Wed, 01 Dec 1999 18:58:14 +0000 |
| Subject: | RE: [PHP4BETA] COM methods fail | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7190@lists.php.net to get a copy of this message | ||
I have had a similiar problem and traced down the problem in the file COM.c.
The problem appears to be that propget and propput do not accept parameters.
For example:
$obj->myproperty($param1) = var;
$var = $obj->myproperty($param1);
I reported this as a bug last week that the com_propget does not support
passing arguments in COM.c.
> -----Original Message-----
> From: Mark Griffin [mailto:archiver@db.geocrawler.com]
> Sent: Wednesday, December 01, 1999 2:01 PM
> To: php4beta@lists.php.net
> Subject: [PHP4BETA] COM methods fail
>
>
> This message was sent from Geocrawler.com by "Mark Griffin"
> <merv@negia.net>
> Be sure to reply to that address.
>
> I am trying to call some methods for a COM Object
> on NT for Macromedia Generator. I have an ASP
> sample that works fine, but when i transpose to PHP
> i get some errors. I am not entirely sure of the
> syntax to use, but it seems like it should work.
>
> The error that i get (PHPb3) is as follows:
> Warning: PropGet() failed: Invalid number of
> parameters. in D:\Inetpub\wwwroot\generator\com.php
> on line 12
>
> Fatal error: Call to undefined function: () in D:\
> Inetpub\wwwroot\generator\com.php on line 12
>
> Here is the code, the ASP version is commented out
> at the top of the block.
>
> <?
>
> //set gen = Server.CreateObject("bodhi.offline")
> //gen.AddTemplate ("d:\inetpub\wwwroot\generator\
> test.swt")
> //gen.AddType ("SwF")
> //gen.AddFileType ("d:\inetpub\wwwroot\generator\
> test.swf")
> //gen.RunGen
>
>
> $gen = new COM("bodhi.offline") or die("Unable to
> instanciate bodhi"); ;
> $gen->AddTemplate("d:\inetpub\wwwroot\generator\
> test.swt");
> $gen->AddType("SwF");
> $gen->AddFileType("d:\inetpub\wwwroot\generator\
> test.swf");
> $gen->RunGen();
>
> ?>
>
> Thank You.
> -Merv
>
>
> Geocrawler.com - The Knowledge Archive
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail:
> php4beta-admin@lists.php.net
>