@@ -336,7 +336,7 @@ static void v8js_named_property_enumerator(const v8::PropertyCallbackInfo<v8::Ar
336
336
/* Allow only public methods */
337
337
continue ;
338
338
}
339
- if ((method_ptr->common .fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR|ZEND_ACC_CLONE )) != 0 ) {
339
+ if ((method_ptr->common .fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR)) != 0 ) {
340
340
/* no __construct, __destruct(), or __clone() functions */
341
341
continue ;
342
342
}
@@ -539,7 +539,7 @@ static void v8js_fake_call_impl(const v8::FunctionCallbackInfo<v8::Value>& info)
539
539
540
540
if (method_ptr == NULL ||
541
541
(method_ptr->common .fn_flags & ZEND_ACC_PUBLIC) == 0 ||
542
- (method_ptr->common .fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR|ZEND_ACC_CLONE )) != 0 ) {
542
+ (method_ptr->common .fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR)) != 0 ) {
543
543
error_len = spprintf (&error, 0 ,
544
544
" %s::__call to %s method %s" , ce->name ,
545
545
(method_ptr == NULL ) ? " undefined" : " non-public" , method_name);
@@ -619,7 +619,7 @@ v8::Local<v8::Value> v8js_named_property_callback(v8::Local<v8::String> property
619
619
(method_ptr = reinterpret_cast <zend_function *>
620
620
(zend_hash_find_ptr (&ce->function_table , method_name))) &&
621
621
((method_ptr->common .fn_flags & ZEND_ACC_PUBLIC) != 0 ) && /* Allow only public methods */
622
- ((method_ptr->common .fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR|ZEND_ACC_CLONE )) == 0 ) /* no __construct, __destruct(), or __clone() functions */
622
+ ((method_ptr->common .fn_flags & (ZEND_ACC_CTOR|ZEND_ACC_DTOR)) == 0 ) /* no __construct, __destruct(), or __clone() functions */
623
623
) || (method_ptr=NULL , is_magic_call)
624
624
) {
625
625
if (callback_type == V8JS_PROP_GETTER) {
0 commit comments