Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38203 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47805 invoked from network); 13 Jun 2008 15:11:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2008 15:11:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 72.14.220.155 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.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:30164] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/86-15165-E1E82584 for ; Fri, 13 Jun 2008 11:11:27 -0400 Received: by fg-out-1718.google.com with SMTP id 16so3090632fgg.23 for ; Fri, 13 Jun 2008 08:11:21 -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=9LFCWaP6g89NT8y0UBcuWo5isNaTLgtDzBCnt5E0iUU=; b=KTmph3zBqOWbHvnN01D7A1lGSUNowTGGLeQjHUHyCKZ0xIG23IsgMnRIGLf9mQ1Oxu nDDKCH3P2sf0ggLQFHhjwRgwjlWNGhbsOesmH6qznJ4hK6UnZ1djWLVnyEEb80ZuFoQF 3/MJq8zphryP0nNEqu2Qvu+BWcDbaVUnn9m5A= 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=E6k7nxUBramJYSUTZMuyaZM3GaleYcuef3PrMvP8hys3jOQYRcS4ptyLgaI9YHuDAU Sz3zaSQlh7Xrg7zbuWcAnmj6XP0l8E3v8UqYeB7i+fpWs2c+csTvjD4tOF6Xft5lzpXa TbjDkd+y7A3sVFt1XtCcWvw2fDqHS+POq0WZE= Received: by 10.86.89.1 with SMTP id m1mr4170740fgb.20.1213369881233; Fri, 13 Jun 2008 08:11:21 -0700 (PDT) Received: by 10.86.90.12 with HTTP; Fri, 13 Jun 2008 08:11:21 -0700 (PDT) Message-ID: <10845a340806130811k252cd257u3e17a6beb8816aca@mail.gmail.com> Date: Fri, 13 Jun 2008 16:11:21 +0100 Reply-To: RQuadling@GoogleMail.com To: "Lars Strojny" Cc: internals In-Reply-To: <1213369434.6903.2.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7787_19027504.1213369881215" References: <10845a340806130738n7caa4931u2b831241d13ca40d@mail.gmail.com> <1213369434.6903.2.camel@localhost> 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_7787_19027504.1213369881215 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > 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). -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" ------=_Part_7787_19027504.1213369881215--