Skip to content
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

change ownership of variable & persistence #32

Open
flip111 opened this issue Oct 8, 2019 · 0 comments
Open

change ownership of variable & persistence #32

flip111 opened this issue Oct 8, 2019 · 0 comments

Comments

@flip111
Copy link

flip111 commented Oct 8, 2019

It would be handy if there was a convenience function that is equivalent to the following:

  1. create a new() variable with owner true and/or persistence true
  2. read out some value over the FFI with the same type as in step 1
  3. memcpy 2 into 1
  4. (optionally ??) free 1

That way things calculated by an extension can be freed immediately and the new php variable passed around as is convenient for it's lifetime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant