Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71971 invoked from network); 5 Jun 2011 20:35:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 20:35:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:35397] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/CE-26000-598EBED4 for ; Sun, 05 Jun 2011 16:35:33 -0400 Received: by pwj3 with SMTP id 3so1881858pwj.29 for ; Sun, 05 Jun 2011 13:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=EIuh8DgM9ga4itZg4jreeggcBfaTk6nOA9XdA1o5uaQ=; b=tNIm+bSF+ZvEmJxQH3juWtHaoRQ8a8YoT5/x8KCj3q51YGVcY5TNa5z/979GbYCHfH e9Qep62AcgiOLc9wUDJsiLySMZUYb1QbmiFaxaBkMw/JhW0uFSD7lu+IvECbMSjfGVE9 UcqDWvnQTWvoFYGacFlkY1W+9oqcTsw7G3SNM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=dxiy3cJoJGSLxcZc6dzQizw8QUXlifbLrtUylkzcT3fmTM7BQrSRErHy+8tqlNUr0V a7pgr/UEkBg8gZV/A3Q5kvZeTDv0NxUWIZxNqq0Es2hz9APa/nyR8wtjcYduFjkKzppA n2QUHze34SgPTZrsVUJm6o7fGpaBlUaPd9jdg= Received: by 10.142.147.19 with SMTP id u19mr656180wfd.119.1307306130252; Sun, 05 Jun 2011 13:35:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.246.21 with HTTP; Sun, 5 Jun 2011 13:35:10 -0700 (PDT) In-Reply-To: <4DEBDDE3.7060208@sugarcrm.com> References: <4DEBDDE3.7060208@sugarcrm.com> Date: Sun, 5 Jun 2011 17:35:10 -0300 Message-ID: To: Stas Malyshev Cc: internals Content-Type: multipart/alternative; boundary=000e0cd3098e81a3db04a4fced99 Subject: Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr(); From: felipensp@gmail.com (Felipe Pena) --000e0cd3098e81a3db04a4fced99 Content-Type: text/plain; charset=UTF-8 Hi, 2011/6/5 Stas Malyshev > Hi! > > > So, I wrote a patch [2] that allow such behavior to be consistent with >> arrays. See some examples: >> > > Looks good. Only question I have is that we seem to have that code (calling > a function based on variable) in two places instead of one, I wonder if it's > necessary and if we could unify them... > We have the code to initialize the call from a object variable, and string variable (function only) in this exact opcode ZEND_INIT_FCALL_BY_NAME, which now treat the array case as well, there is no other place doing such stuff. -- Regards, Felipe Pena --000e0cd3098e81a3db04a4fced99--