[PHP-DEV] Addition: [PHP-DEV] call_user_function() - conventions From: Zeev Suraski (bourbon <email protected>)
Date: 07/27/98

At 19:59 25/07/98, Zeev Suraski wrote:
>I'm not sure this will be that useful for general purpose, but just so that
>it's clear how this function is supposed to be used, here goes.

One important thing I missed, and so generously got reminded of by a crash
bug in the new usort().

All internal functions that call user functions *must* be reentrant. Among
other things, it means they mustn't use globals without caution.

For a good example of an internal function that calls user functions, look
at the usort implementation in basic_functions.c - *never* write a function
like that! :)

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>