Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76638 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24471 invoked from network); 18 Aug 2014 09:36:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2014 09:36:59 -0000 Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.51 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:42451] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/35-29636-939C1F35 for ; Mon, 18 Aug 2014 05:36:57 -0400 Received: by mail-qa0-f51.google.com with SMTP id k15so4093226qaq.38 for ; Mon, 18 Aug 2014 02:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=6weNHcvj1Jel/QLzbA1ov52dXXcfhGchkgZO5JorDZY=; b=r/TpuZMW87mo8O9UKN1Utz1pM3OMuQRnJRRp9LkC4hG3nEFDzJ6vAkaKr5C7VfPNL9 1zVOjKtzXQqgy68b5ZstfeeehjEBSlSutZWbWQqrHGQsS8+7Guib5+BvOGoplyNEhimN XcaW50R+unhGXo02T+mZ8FXcs8wRFxYo5yBZ4MazguJ4MvHk1lVfekp13VkESYL3PYlC wp+yA7FPyS36T4nHeBoZyUzvOmXHLHKz/akiHYRmXpeYEL1Bia9kPhH+D7Q1eLhHNMnu 5+F3lVVaxNJjLSKniMIp7zAYz/1/nPVcl69sZlPQNswwHqvPwvhZGWJqhUB9n21hlAV9 Bo/w== MIME-Version: 1.0 X-Received: by 10.140.20.17 with SMTP id 17mr44190776qgi.85.1408354615146; Mon, 18 Aug 2014 02:36:55 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.229.64.196 with HTTP; Mon, 18 Aug 2014 02:36:55 -0700 (PDT) In-Reply-To: <86EEE03317124B84B62883DBE41C4ADD@gmail.com> References: <86EEE03317124B84B62883DBE41C4ADD@gmail.com> Date: Mon, 18 Aug 2014 10:36:55 +0100 X-Google-Sender-Auth: Fwlro8rrqBy3lypcZs5jZr3DL9E Message-ID: To: Wei Dai Cc: Aaron Lewis , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: =?UTF-8?B?UmU6IFtQSFAtREVWXSDlm57lpI3vvJogW1BIUC1ERVZdIEhvdyBzaG91bGQgSSBjYWxsIA==?= =?UTF-8?B?YSBQSFAgZnVuY3Rpb24=?= From: cw@daverandom.com (Chris Wright) On 18 August 2014 03:37, Wei Dai wrote: > Hi, >> Hi, >> >> I'm trying to call a function inside a module, a PHP_FUNCTION. >> >> Other than zend_eval_stringl, what's the direct way to do it? > Please refer to call_user_function and call_user_function_ex. ...and along these lines, when you need to do something that is done in other parts of the codebase, take a look at how those other parts do them - searching lxr for "call_user_func" led me straight to http://lxr.php.net/xref/PHP_5_6/ext/standard/basic_functions.c#4738 ;-)