diff options
| author | Zeev Suraski <zeev@php.net> | 2003-08-03 21:04:39 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2003-08-03 21:04:39 +0000 |
| commit | e3f4147931ebd046e43a21688403467b896cfb84 (patch) | |
| tree | 329ee43acc052e872533a2f6735ef1ada7febd9d /Zend/zend_API.c | |
| parent | 8c614ddda42ddecd1367f470ab3f4a00531a6c30 (diff) | |
| download | php-git-e3f4147931ebd046e43a21688403467b896cfb84.tar.gz | |
Default to public
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index bca19db0d2..4c26d87ffe 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1170,7 +1170,11 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi internal_function->num_args = 0; internal_function->pass_rest_by_reference = 0; } - internal_function->fn_flags = ptr->flags; + if (ptr->flags) { + internal_function->fn_flags = ptr->flags; + } else { + internal_function->fn_flags = ZEND_ACC_PUBLIC; + } if (!internal_function->handler) { zend_error(error_type, "Null function defined as active function"); zend_unregister_functions(functions, count, target_function_table TSRMLS_CC); |
