Skip to content

Retrieve php resources from native code #36

@phpbg

Description

@phpbg

Hi,
let's say I want to use open() from fcntl.h
If I load this into FFI:
int open(const char *pathname, int flags);

then php see the result as an integer, while it is a file descriptor.
Am I wrong?
Is there a way to handle file descriptors?

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