Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74049 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49494 invoked from network); 8 May 2014 05:34:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2014 05:34:29 -0000 Authentication-Results: pb1.pair.com header.from=the.warl0ck.1989@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=the.warl0ck.1989@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.50 as permitted sender) X-PHP-List-Original-Sender: the.warl0ck.1989@gmail.com X-Host-Fingerprint: 209.85.219.50 mail-oa0-f50.google.com Received: from [209.85.219.50] ([209.85.219.50:39694] helo=mail-oa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/30-45216-3671B635 for ; Thu, 08 May 2014 01:34:28 -0400 Received: by mail-oa0-f50.google.com with SMTP id i7so2478365oag.37 for ; Wed, 07 May 2014 22:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=VoV+a1VPHKoF0WcK49zYgpEeKC0whNeIpUqkPOtFGc4=; b=ogDZRCEQzAlqlr4q7wfqieWLKXVYAJU1dyROqOKHU0BC96KwkhuAZfhgUA9X4tOqFq WCipuC/DbfmSRbSUv/MDfC242NUfDB9iAv8FhzuzhHtxy1jM/XOFJfbpDCKLq2MGihKk DrRY+jChXXU2b1KB5WIWFlmF6Kb1NhBg19WGFMD3wE3beYSiAjLaXV5VTPEogg73ZYde ByUmqVVIhP9S5tDi43cI2IzBx7nU5l13/dJwwwAwmxgWMuXlwSvQAn6+rGFUAzy1WyPK xexC5YFe1eVS8t5cMKBI3Un/VCGNx1TcjJvTkhI5+RtBKuDdNzgWLPlYa+Y34lQ0FaBs 7Lew== MIME-Version: 1.0 X-Received: by 10.60.51.39 with SMTP id h7mr1260567oeo.52.1399527264991; Wed, 07 May 2014 22:34:24 -0700 (PDT) Received: by 10.76.23.66 with HTTP; Wed, 7 May 2014 22:34:24 -0700 (PDT) Date: Thu, 8 May 2014 13:34:24 +0800 Message-ID: To: Julien Pauli Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: [SOLVED] Re: [PHP-DEV] What's the difference between PHP_FUNCTION and PHP_NAMED_FUNCTION? From: the.warl0ck.1989@gmail.com (Aaron Lewis) Thanks Julien! On Wed, May 7, 2014 at 4:00 PM, Julien Pauli wrote: > On Wed, May 7, 2014 at 9:50 AM, Aaron Lewis wrote: >> Hi, >> >> What's the difference between PHP_FUNCTION and PHP_NAMED_FUNCTION? > > As you can see on lxr : > http://lxr.php.net/xref/PHP_5_5/Zend/zend_API.h#67 , PHP_FUNCTION is > gonna use ZEND_FN on your function to turn its name into "zif_XXX" , > avoiding collision in function names, especially regarding libc's > functions. > PHP_NAMED_FUNCTION() let you choose the full name and be responsible > yourself of avoiding collisions in names with linked objects. > > Julien.P -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33