From 6020ffd007d71d8cf4f08677cead48b016c9f679 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 23 Jan 2004 22:04:42 +0000 Subject: Simplify detection of methods that must be called dynamic (with object) --- Zend/zend_API.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Zend/zend_API.c') 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); } -- cgit v1.2.1