Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52463 invoked by uid 1010); 28 Sep 2007 11:22:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52448 invoked from network); 28 Sep 2007 11:22:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2007 11:22:03 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from [80.123.98.46] ([80.123.98.46:9295] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/B3-13331-AD3ECF64 for ; Fri, 28 Sep 2007 07:22:03 -0400 Message-ID: To: internals@lists.php.net Date: Fri, 28 Sep 2007 13:21:46 +0200 User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 References: <200709281257.34488.alon@f4w.nl> In-Reply-To: <200709281257.34488.alon@f4w.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: using zend_parse_parameters to get an object of an externally defined class From: mike@php.net (Michael Wallner) alon wrote: > A newbie question: > > How can I use zend_parse_parameters to accept object of an external class as > parametr. > > I want for example to build a method that accepts 'DateTime' objects. > But how do I initiate the zend_class_entry to specify an object of the > DateTime class? The class entry pointer or a function which returns it needs to be exported by the datetime API. IIRC that's not the case ATM. -- Michael