Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74003 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27146 invoked from network); 7 May 2014 08:01:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2014 08:01:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.220.176 mail-vc0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:32843] helo=mail-vc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/81-17246-C58E9635 for ; Wed, 07 May 2014 04:01:33 -0400 Received: by mail-vc0-f176.google.com with SMTP id lg15so783746vcb.21 for ; Wed, 07 May 2014 01:01:30 -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:from:date:message-id :subject:to:cc:content-type; bh=6xLnk7PRYQItFgrlSUSzNRl4/8a55mxKFZcOHKw6gVQ=; b=LN0uh2iQ9uTsQqMVRD9P+6ioJvupp/uHxc3fGHOWSnQPRkdRLpsfHOYAB7Zrc6VtPi KtvmrAyaQ/BEUCviTJ6QpiIvylitu3j0/7tbPLwCf4OJ6Pciv7k0cMSgAlg3O/O/Lmf5 xRTzWDSy1zF3OOtwYb3y27xGCw/yf4XNECRoRiuurbhtQ80XECanWe629shy8zCTAIHv pM21FGT91VgkP4zJPEo6nD/aJa39XV3Qntq/sQnDrQD9TzK+kkl/b/mrHnKwMGwjSr9G Wda4np6kbeKkE2hhrNnlJOKHweF3VHPLqhDP7besS3M7FZcPB0V28xpSkiuv2HvKNi7g fZvw== X-Received: by 10.220.81.194 with SMTP id y2mr6253953vck.29.1399449690374; Wed, 07 May 2014 01:01:30 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.81.68 with HTTP; Wed, 7 May 2014 01:00:50 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 May 2014 10:00:50 +0200 X-Google-Sender-Auth: TiaEok0zhkzIezBHmh9eVzVlbcU Message-ID: To: Aaron Lewis Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] What's the difference between PHP_FUNCTION and PHP_NAMED_FUNCTION? From: jpauli@php.net (Julien Pauli) 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