Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48332 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49374 invoked from network); 18 May 2010 22:40:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2010 22:40:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 209.85.217.225 mail-gx0-f225.google.com Received: from [209.85.217.225] ([209.85.217.225:61846] helo=mail-gx0-f225.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/14-27340-75713FB4 for ; Tue, 18 May 2010 18:40:24 -0400 Received: by gxk25 with SMTP id 25so3805548gxk.11 for ; Tue, 18 May 2010 15:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=3s3JoKHiLK4nZDHib/6JMRSwaeosdCht+PvNJq4mx1I=; b=ueMW/Q8d91HApG7JVQ6ignLchqSzaEu3DU9PTa+10dxgWrnO19wu19WjL4KN0rj6DW yYYYUWnYHkzIz1lT6KBj/QvyecoIViN9Ttfk2TPzxUrP5fFWbGG5hH/h/zHhAHJEe3Mb P0vipV2Hb4seIsfQ6PDyQ5pzhCZCCYQcGeCvE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wn5SfBIQ5RfZt2w17vqLGuILk624vVlrbnD4KFOikyo3noSOaDn1NxYD2oXuhkG6ZJ ccERsem/ijWdPMy1pCx+gYcc3JaxSbuQtuyuFu+uNMJqG55NQfYVdSOM15apQC7zZmu9 RkJBXBjYUdMzQ3pEjmEmViww+IV+D77AW3MQk= MIME-Version: 1.0 Received: by 10.101.11.20 with SMTP id o20mr9043456ani.4.1274222421052; Tue, 18 May 2010 15:40:21 -0700 (PDT) Received: by 10.100.137.18 with HTTP; Tue, 18 May 2010 15:40:21 -0700 (PDT) Date: Tue, 18 May 2010 19:40:21 -0300 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e68f9eecc58dfe0486e6065c Subject: [SUGGEST] - passthru From: mathiasgrimm@gmail.com (Mathias Grimm) --0016e68f9eecc58dfe0486e6065c Content-Type: text/plain; charset=ISO-8859-1 i suggest the passthru functionality to pass parameter to other method without typing all parameters,like call_user_func_array. foo(passthru()); = call_user_func_array('foo', func_get_args()); // case 1: function a($a,$b,$c) { //... } function aa() { a(passthru()); // like call_user_func_array('a', func_get_args()); someOthers(); } aa('foo','bar','baz'); //case 2: class base { protected function insert(BaseType $object,$a,$b,$c) { } } class son extends base { public function insert(SonType $object) //type hinting differs from base { parent::insert(passthru()); // like call_user_func_array(array('parent', 'insert'), func_get_args()); } } $son = new son(); $sonType = new SonType(); $son->insert($sonType,'foo','bar','baz'); -- Mathias Grimm Sun Certified Java Programmer 6.0 #SUN604760 Zend Certified Engineer #ZEND006756 http://mathiasgrimm.com.br http://phpempregos.com.br --0016e68f9eecc58dfe0486e6065c--