Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38204 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49043 invoked from network); 13 Jun 2008 15:12:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2008 15:12:23 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 72.14.220.156 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 72.14.220.156 fg-out-1718.google.com Received: from [72.14.220.156] ([72.14.220.156:31292] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/B6-15165-D4E82584 for ; Fri, 13 Jun 2008 11:12:22 -0400 Received: by fg-out-1718.google.com with SMTP id 16so3090912fgg.23 for ; Fri, 13 Jun 2008 08:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type:references; bh=OpUGHV45rHooNkKnfWP9UN59G/OKknARIkTxQ8Qtswo=; b=EPodu4mCOdDaVkDL5HjyC2p1e8asUXruvSPBbSiefwec/TdEe5StZ3pQ2w/N2pIWzU fRosNq/iFBrFTCxhDGy9+eHExQniTkI1A/MAX5TaH0fEs64Z9bpGpumut3eRW3wBn+ag DFUaYGNkTP2t1ZJqfnZpBUMv/T/GEKoNDsh5k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:references; b=IFDCrnQBED/uMFkugpgilZgPKWqSNZsFMjNrZvaytHIbPBWJFl/QPwKD/J/VG1GJId 5x7D6kAsLfnAWHBmDi/AEHrthKKChkCrLxt6URSsYBpbkPxs01qezDguwgGUyfTELdXY l9MEMqkt6T9PPfOsEcuf3R7SSB44hcb0cUFcU= Received: by 10.86.23.17 with SMTP id 17mr4136235fgw.32.1213369929637; Fri, 13 Jun 2008 08:12:09 -0700 (PDT) Received: by 10.86.90.12 with HTTP; Fri, 13 Jun 2008 08:12:09 -0700 (PDT) Message-ID: <10845a340806130812m1d5fce59ua9abb362c5a361c@mail.gmail.com> Date: Fri, 13 Jun 2008 16:12:09 +0100 Reply-To: RQuadling@GoogleMail.com To: "Lars Strojny" Cc: internals In-Reply-To: <10845a340806130811k252cd257u3e17a6beb8816aca@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7800_10801660.1213369929638" References: <10845a340806130738n7caa4931u2b831241d13ca40d@mail.gmail.com> <1213369434.6903.2.camel@localhost> <10845a340806130811k252cd257u3e17a6beb8816aca@mail.gmail.com> Subject: Re: [PHP-DEV] Would there be any mileage or interest in having PHP's COM class support Reflection? From: rquadling@googlemail.com ("Richard Quadling") ------=_Part_7800_10801660.1213369929638 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/6/13 Richard Quadling : > > > 2008/6/13 Lars Strojny : > > 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 >> > > $o_CrObjectFactory = New COM("CrystalReports11.ObjectFactory.1"); > > Reflection::export(new ReflectionObject($o_CrObjectFactory)); > ?> > > and that gets a crash. MS's Dr.Watson kicks in. > > I'm certainly not expecting COM objects to support reflection natively > (that's most likely the cause of the crash). I should have said "I'm certainly not expecting COM objects to support reflection natively at the moment". It would be nice if ... that's all. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" ------=_Part_7800_10801660.1213369929638--