mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-08 15:48:40 +00:00
PHP7 adapt fix: use zend_hash_find_ptr on ce->function_table
This commit is contained in:
parent
592d6528ca
commit
1e8ce5a609
@ -792,7 +792,7 @@ static v8::Handle<v8::Object> v8js_wrap_object(v8::Isolate *isolate, zend_class_
|
||||
zend_string *invoke_str = zend_string_init
|
||||
(ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME) - 1, 0);
|
||||
zend_function *invoke_method_ptr = reinterpret_cast<zend_function *>
|
||||
(zend_hash_find(&ce->function_table, invoke_str));
|
||||
(zend_hash_find_ptr(&ce->function_table, invoke_str));
|
||||
if (invoke_method_ptr &&
|
||||
invoke_method_ptr->common.fn_flags & ZEND_ACC_PUBLIC) {
|
||||
new_tpl->InstanceTemplate()->SetCallAsFunctionHandler(v8js_invoke_callback, PHP_V8JS_CALLBACK(isolate, invoke_method_ptr, new_tpl));
|
||||
|
Loading…
Reference in New Issue
Block a user