Re: Would there be any mileage or interest in having PHP's COM class support Reflection?
| From: | Lars Strojny | Date: | Fri, 13 Jun 2008 15:03:54 +0000 |
| Subject: | Re: Would there be any mileage or interest in having PHP's COM class support Reflection? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38202@lists.php.net to get a copy of this message | ||
Hi Richard,
Am Freitag, den 13.06.2008, 15:38 +0100 schrieb Richard Quadling:
>
> Out of interest, I tried the following line of userland PHP ...
>
> php -n -r "Reflection::export(new
> COM('CrystalReports11.ObjectFactory.1'));"
>
> The error reported is ...
>
> Catchable fatal error: Argument 1 passed to Reflection::export() must
> implement interface Reflector, instance of com given in Command line
> code on
> line 1
Read the error report and than take a look at the documentation:
http://de.php.net/language.oop5.reflection
This should work:
Reflection::export(
new ReflectionObject(
new COM('CrystablReports11.ObjectFactory.1')
)
);
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc