Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9556 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64305 invoked by uid 1010); 25 Apr 2004 17:29:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64281 invoked from network); 25 Apr 2004 17:29:10 -0000 Received: from unknown (HELO iko.gotobg.net) (80.168.8.116) by pb1.pair.com with SMTP; 25 Apr 2004 17:29:10 -0000 Received: from pd95191a3.dip.t-dialin.net ([217.81.145.163] helo=hristov.com) by iko.gotobg.net with asmtp (Exim 4.24) id 1BHnRK-0006KI-MI; Sun, 25 Apr 2004 20:29:14 +0300 Message-ID: <408BF44E.5020305@hristov.com> Date: Sun, 25 Apr 2004 19:24:30 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20031230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Timm Friebe CC: internals@lists.php.net References: <408BEF30.60003@eenterphace.org> <1082913611.689.1.camel@localhost> In-Reply-To: <1082913611.689.1.camel@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com Subject: Re: [PHP-DEV] new_object_array() From: php@hristov.com (Andrey Hristov) Timm Friebe wrote: > How about: > > return call_user_func_array( > array(new ReflectionClass($className), 'newInstance'), > $functionParameters > ); > > Untested but should work. > > - Timm > Yep, I have done something similar and it worked. The Reflection API is quite powerful. Andrey