-
Notifications
You must be signed in to change notification settings - Fork 69
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
Pass Zval as argument to PHP functions #198
Comments
Hello! Thank you for your issue and I'll try to answer: |
Thanks for the Idea, I tried to use a ZendObject type, but I have issues creating an owned version of it. And I fear it also does not implement |
This should have been resolved by #256 |
Thank you for responding, this seems to be the fix. Nice 🙂 |
Hi 👋
First of all thank you for building this crate!
I think there's currently no built-in way to pass a Zval to a function call.
The issue is that
Zval
does not implementIntoZvalDyn
because it is notClone
.I'm currently working around this like so:
For context, I'm using it here:
https://github.com/Christian-Rades/Tape/blob/060e3195bf5b4d4651b694d8cc4ebff82db45bf5/src/evaluation/config.rs#L68
So I've got two questions:
IntoZvalDyn
an ok solution here?The text was updated successfully, but these errors were encountered: