-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error: "no matching function for call to 'v8::ObjectTemplate::SetAccessor" #528
Comments
I've faced this problem today. Got it compiling however not sure if it'll introduce issues when I start using it. I dropped the last 2 parameters to the php_obj->SetAccessor(V8JS_STRL(ZSTR_VAL(property_name), static_cast<int>(ZSTR_LEN(property_name))),v8js_fetch_php_variable,NULL,v8::External::New(isolate, ctx)); The extension builds and the tests mostly now pass - with only 2 failures make test
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test V8::executeString() : Issue #306 V8 crashing on toLocaleString() [tests/issue_306_basic.phpt]
Test V8::executeString() : Check timezone handling [tests/timezones.phpt]
===================================================================== Given they are both related to Date/Time handling I'm currently guessing it's unrelated so just going to steam forward for now. Hope this helps |
The recent V8Js was made in response to API changes in more recent versions of V8. @alexwight / @viktym what version of V8 are you compiling against? or can you give |
I have the same problem on OSX with php 8.3.3:
gives the following error:
As per @alexwight, i tried to drop the last to params which compiles but, unfortunately, Any tips? @redbullmarky - How might I "give SetAccessorProperty a go" ? Thank you. |
I was building using php
...
98% of tests are passing. @redbullmarky i'll try and give SetAccessorProperty a go as soon as I can and report back |
Quick update: I added -DV8_ENABLE_SANDBOX to the configure command:
and am now getting a 98% pass with the two params removed from SetAccessor function call |
Sorry yes, I had that too - I should have mentioned that 😅 |
During the compilation got an error
error: no matching function for call to 'v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, void (&)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&), NULL, v8::Local<v8::External>, v8::AccessControl, v8::PropertyAttribute)' 83 | php_obj->SetAccessor(V8JS_STRL(ZSTR_VAL(property_name), static_cast<int>(ZSTR_LEN(property_name))), v8js_fetch_php_variable, NULL, v8::External::New(isolate, ctx), v8::DEFAULT, v8::ReadOnly);
Does anyone face it? Any recommendations?
The text was updated successfully, but these errors were encountered: