Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38202 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44389 invoked from network); 13 Jun 2008 15:04:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2008 15:04:07 -0000 Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain strojny.net designates 78.46.69.2 as permitted sender) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 78.46.69.2 milch.schokokeks.org Received: from [78.46.69.2] ([78.46.69.2:49401] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/D5-15165-F5C82584 for ; Fri, 13 Jun 2008 11:04:00 -0400 Received: from [192.168.0.100] (xdsl-87-79-208-219.netcologne.de [::ffff:87.79.208.219]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by milch.schokokeks.org with esmtp; Fri, 13 Jun 2008 17:03:56 +0200 id 000000000000C006.0000000048528C5C.000006D5 To: RQuadling@GoogleMail.com Cc: internals In-Reply-To: <10845a340806130738n7caa4931u2b831241d13ca40d@mail.gmail.com> References: <10845a340806130738n7caa4931u2b831241d13ca40d@mail.gmail.com> Date: Fri, 13 Jun 2008 17:03:54 +0200 Message-ID: <1213369434.6903.2.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_milch.schokokeks.org-1749-1213369436-0001-2" X-Mailer: Evolution 2.22.2 Subject: Re: [PHP-DEV] Would there be any mileage or interest in having PHP's COM class support Reflection? From: lars@strojny.net (Lars Strojny) --=_milch.schokokeks.org-1749-1213369436-0001-2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Richard, Am Freitag, den 13.06.2008, 15:38 +0100 schrieb Richard Quadling: >=20 > Out of interest, I tried the following line of userland PHP ... >=20 > php -n -r "Reflection::export(new > COM('CrystalReports11.ObjectFactory.1'));" >=20 > The error reported is ... >=20 > 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 --=_milch.schokokeks.org-1749-1213369436-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iQIcBAABAgAGBQJIUoxUAAoJECQPF+sCY6wHJVQP/RJH+Q84FMFkryZ80jZ8Gmv/ Pc+/hzlnuLVVQdSrSPH5SOeIynqIO9aucWfDMSImcYAj1LDbBC6T5NQAYxIjHjWd B0f/lyDnSYbe3YW6clhmpnbaB67k5TPOhIPQPl/SCTgTWPrCVY86KBv6C7QaAbRF ZoVpyjhLrekRkpPg4m2V+EHUDyPAnuDyJTMOEtUlzyymGuAB2N3lzs0M/hrbAgLC MSSLkguhkuY2jTzAF1EcP4OAsCk7KZxR1MbjcWkD/HdsbyBqJxmSNSgY2GmyFIQF 1xQxM69pzWkn0TYLt6IZSc9UuH/wE0TXdY7+T/cIVVBe/u6nyJhndGrpDeH9xoH3 F2TzBE8MJooI2Y7xsKWnzvJLITuJv53E09cpqBOaLHohPPnhXF58Z2fx7+qC9YvX 48Est/elX1tiDkFgK3nV3ND8UeXW7GxlbsnLlhXGTrcZfSxyQxR5zTlPPMBFQNGt A9B0NXlVHFq+WcG9M1VyDu9UDzApAoWE20Gfvtn6IrI7HssOwDRUJkFLtSy5BDkf 3dBaKSPnaIzPcSXXI9sMNuakUgtL+xyQnHyi5gcnBPDJM9ltARiH/cnDdDMFW3hC A6FtON0LpXUx3wJY8UZ4BbVNDLmdhWTJhtrpNtofzpw/cO9H890n/EOHdu9dVVvE rGptg67ivFlhCwWIstcY =+aPD -----END PGP SIGNATURE----- --=_milch.schokokeks.org-1749-1213369436-0001-2--