Index: Zend/zend_API.c =================================================================== RCS file: /repository/ZendEngine2/zend_API.c,v retrieving revision 1.296.2.27.2.30 diff -u -p -d -r1.296.2.27.2.30 zend_API.c --- Zend/zend_API.c 16 May 2007 18:57:15 -0000 1.296.2.27.2.30 +++ Zend/zend_API.c 30 May 2007 10:04:25 -0000 @@ -1640,6 +1640,7 @@ ZEND_API int zend_register_functions(zen internal_function->function_name = ptr->fname; internal_function->scope = scope; internal_function->prototype = NULL; + internal_function->module = EG(current_module); if (ptr->arg_info) { internal_function->arg_info = ptr->arg_info+1; internal_function->num_args = ptr->num_args;