Skip to content

Conversation

@cmb69
Copy link

@cmb69 cmb69 commented Jun 6, 2020

There seems to be interest in being able to use php-postal on Windows (#16); these patches add basic Windows support, and the AppVeyor CI integration shows how that can be accomplished (plus it creates PECL like binary packages as artifacts).

I think a lot could be improved here; particularly, the hard coded URL of the libpostal binary package, which points to the AppVeyor artifacts of the currently latest commit, is obviously suboptimal.

Furthermore, it would be nice to know how to get the libpostal data for users (and also for AppVeyor CI to be able to run the test suite). @c33s's solution worked for me (thanks!), but I'd prefer a Windows only solution.

cmb69 added 2 commits June 6, 2020 17:34
We add a `config.w32` which relies on the usual dependency layout.

We also do the following replacements to be able to build on Windows:

* `ulong` => `unsigned long`
* `strndup()` => `zend_strndup()`
We add basic AppVeyor CI support for building the extension, and for
packing a PECL like Zip archive with the binaries.
@cmb69
Copy link
Author

cmb69 commented Jun 7, 2020

The Travis CI failure is due to PHP 5.5 not being available. It seems to make sense to update .travis.yml to use more recent PHP versions.

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

Successfully merging this pull request may close these issues.

1 participant