Bladeren bron

PHP7 adapt fix: use zend_hash_find_ptr on ce->function_table

Stefan Siegl 9 jaren geleden
bovenliggende
commit
1e8ce5a609
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      v8js_object_export.cc

+ 1 - 1
v8js_object_export.cc

@@ -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));