Skip to content

change ownership of variable & persistence #32

@flip111

Description

@flip111

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions