@@ -362,41 +362,6 @@ static PHP_METHOD(V8ObjectTemplate, SetCallAsFunctionHandler) {
362362
363363 local_template->SetCallAsFunctionHandler (callback, data);
364364}
365- // NOTE: Method is not supported anymore due to a limited use and a way it implemented (causes segfault under certain conditions)
366- /*
367- static PHP_METHOD(V8ObjectTemplate, MarkAsUndetectable) {
368- if (zend_parse_parameters_none() == FAILURE) {
369- return;
370- }
371-
372- PHP_V8_FETCH_OBJECT_TEMPLATE_WITH_CHECK(getThis(), php_v8_object_template);
373- PHP_V8_ENTER_STORED_ISOLATE(php_v8_object_template);
374-
375- v8::Local<v8::ObjectTemplate> local_template = php_v8_object_template_get_local(isolate, php_v8_object_template);
376-
377- local_template->MarkAsUndetectable();
378- }
379- */
380-
381- // not used currently
382- static PHP_METHOD (V8ObjectTemplate, SetAccessCheckCallback) {
383- zend_fcall_info fci_callback = empty_fcall_info;
384- zend_fcall_info_cache fci_cache_callback = empty_fcall_info_cache;
385-
386- if (zend_parse_parameters (ZEND_NUM_ARGS (), " f" , &fci_callback, &fci_cache_callback) == FAILURE) {
387- return ;
388- }
389-
390- PHP_V8_FETCH_OBJECT_TEMPLATE_WITH_CHECK (getThis (), php_v8_object_template);
391- PHP_V8_ENTER_STORED_ISOLATE (php_v8_object_template);
392-
393- phpv8::CallbacksBucket *bucket = php_v8_object_template->persistent_data ->bucket (" access_check" );
394- bucket->add (phpv8::CallbacksBucket::Index::Callback, fci_callback, fci_cache_callback);
395-
396- v8::Local<v8::ObjectTemplate> local_template = php_v8_object_template_get_local (php_v8_object_template);
397-
398- local_template->SetAccessCheckCallback (php_v8_callback_access_check, v8::External::New (isolate, bucket));
399- }
400365
401366/* Non-standard, implementations of AdjustableExternalMemoryInterface::AdjustExternalAllocatedMemory */
402367static PHP_METHOD (V8ObjectTemplate, AdjustExternalAllocatedMemory) {
@@ -472,21 +437,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_php_v8_object_template_SetCallAsFunctionHandler,
472437 ZEND_ARG_INFO(0 , callback)
473438ZEND_END_ARG_INFO()
474439
475- // not used
476- // void method
477- /*
478- ZEND_BEGIN_ARG_INFO_EX(arginfo_php_v8_object_template_MarkAsUndetectable, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
479- ZEND_END_ARG_INFO()
480- */
481-
482- // not used
483- // void method
484- /*
485- ZEND_BEGIN_ARG_INFO_EX(arginfo_php_v8_object_template_SetAccessCheckCallback, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 1)
486- ZEND_ARG_CALLABLE_INFO(0, callback, 1)
487- ZEND_END_ARG_INFO()
488- */
489-
490440PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_v8_object_template_AdjustExternalAllocatedMemory, ZEND_RETURN_VALUE, 1 , IS_LONG, 0 )
491441 ZEND_ARG_TYPE_INFO(0 , change_in_bytes, IS_LONG, 0 )
492442ZEND_END_ARG_INFO()
@@ -511,8 +461,6 @@ static const zend_function_entry php_v8_object_template_methods[] = {
511461 PHP_ME (V8ObjectTemplate, SetHandlerForNamedProperty, arginfo_php_v8_object_template_SetHandlerForNamedProperty, ZEND_ACC_PUBLIC)
512462 PHP_ME (V8ObjectTemplate, SetHandlerForIndexedProperty, arginfo_php_v8_object_template_SetHandlerForIndexedProperty, ZEND_ACC_PUBLIC)
513463 PHP_ME (V8ObjectTemplate, SetCallAsFunctionHandler, arginfo_php_v8_object_template_SetCallAsFunctionHandler, ZEND_ACC_PUBLIC)
514- // PHP_ME(V8ObjectTemplate, MarkAsUndetectable, arginfo_php_v8_object_template_MarkAsUndetectable, ZEND_ACC_PUBLIC)
515- // PHP_ME(V8ObjectTemplate, SetAccessCheckCallback, arginfo_php_v8_object_template_SetAccessCheckCallback, ZEND_ACC_PUBLIC)
516464
517465 PHP_ME (V8ObjectTemplate, AdjustExternalAllocatedMemory, arginfo_v8_object_template_AdjustExternalAllocatedMemory, ZEND_ACC_PUBLIC)
518466 PHP_ME (V8ObjectTemplate, GetExternalAllocatedMemory, arginfo_v8_object_template_GetExternalAllocatedMemory, ZEND_ACC_PUBLIC)
0 commit comments