diff options
| author | Marcus Boerger <helly@php.net> | 2004-01-23 22:04:42 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-01-23 22:04:42 +0000 |
| commit | 6020ffd007d71d8cf4f08677cead48b016c9f679 (patch) | |
| tree | bed1e2d94a244bd80060c13d235e9e981f9baaff /Zend/zend_API.c | |
| parent | 4c0b1fddabdb6bda9b3822e63639aca5cf75b344 (diff) | |
| download | php-git-6020ffd007d71d8cf4f08677cead48b016c9f679.tar.gz | |
Simplify detection of methods that must be called dynamic (with object)
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 2e7b897e2b..ec6fb918db 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1293,19 +1293,19 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr scope->destructor = dtor; scope->clone = clone; if (ctor) { - ctor->common.fn_flags |= ZEND_ACC_CTOR; + ctor->common.fn_flags |= ZEND_ACC_CTOR|ZEND_ACC_DYNAMIC; if (ctor->common.fn_flags & ZEND_ACC_STATIC) { zend_error(error_type, "Constructor %s::%s cannot be static", ctor->common.scope->name, ctor->common.function_name); } } if (dtor) { - dtor->common.fn_flags |= ZEND_ACC_DTOR; + dtor->common.fn_flags |= ZEND_ACC_DTOR|ZEND_ACC_DYNAMIC; if (dtor->common.fn_flags & ZEND_ACC_STATIC) { zend_error(error_type, "Destructor %s::%s cannot be static", dtor->common.scope->name, dtor->common.function_name); } } if (clone) { - clone->common.fn_flags |= ZEND_ACC_CLONE; + clone->common.fn_flags |= ZEND_ACC_CLONE|ZEND_ACC_DYNAMIC; if (clone->common.fn_flags & ZEND_ACC_STATIC) { zend_error(error_type, "Constructor %s::%s cannot be static", clone->common.scope->name, clone->common.function_name); } |
