deuill / go-php

PHP bindings for the Go programming language (Golang)
MIT License
930 stars 105 forks source link

First version of PHP 7 support #12

Closed deuill closed 8 years ago

deuill commented 8 years ago

This adds support for building against PHP 7 when using the php7 build tag (i.e. go build -tags php7). PHP 5 support remains the default and does not need passing any tags, currently, though this may change at some point.

deuill commented 8 years ago

Currently, the code builds and basic tests run, but more advanced tests fail with "zend_mm_heap corrupted". More to come.

deuill commented 8 years ago

Tests build on both PHP5 and PHP7 and I'm happy with the general code quality, so merging this. The whole pre-processor #define mess may be revisited at some point, though.