[SOLVED] Re: [PHP-DEV] What's the difference between PHP_FUNCTION and PHP_NAMED_FUNCTION?
| From: | Aaron Lewis | Date: | Thu, 08 May 2014 05:34:24 +0000 |
| Subject: | [SOLVED] Re: [PHP-DEV] What's the difference between PHP_FUNCTION and PHP_NAMED_FUNCTION? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-74049@lists.php.net to get a copy of this message | ||
Thanks Julien!
On Wed, May 7, 2014 at 4:00 PM, Julien Pauli <jpauli@php.net> wrote:
> On Wed, May 7, 2014 at 9:50 AM, Aaron Lewis <the.warl0ck.1989@gmail.com> 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