Skip to content

Add Windows platform support #1

Closed

Description

@lisachenko

Currently this library uses some exported functions for hashes and opcode handler manipulation. Unfortunately, under Windows platform, PHP uses __vectorcall convention which is not supported by libffi, thus symbol can't be resolved.

This issue can be solved in two ways: by adding support for __vectorcall convention in libffi or by writing hash functions from scratch, which is not easy task right now.

Activity

  1. lisachenko commented on Sep 20, 2019

    @lisachenko
    OwnerAuthor
  2. lisachenko commented on Oct 23, 2019

    @lisachenko
    OwnerAuthor

    Partial support of __vectorcall was added in the snapshot: https://windows.php.net/downloads/snaps/ostc/ffi-vectorcall/

    Thus, library can work with Windows platform too 👍 Need to add simple macros resolving for defintions, as well, as loading of php7.dll for Windows platform

  3. added this to the 0.5.0 milestone on Oct 23, 2019
  4. lisachenko commented on Oct 28, 2019

    @lisachenko
    OwnerAuthor

    This issue can be resolved right now, waiting for the merge of patch by @cmb69 into the libffi and PHP itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwindowsIssue is related to the Windows platform

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions