Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First version of PHP 7 support #12

Merged
merged 7 commits into from
Jan 19, 2016
Merged

First version of PHP 7 support #12

merged 7 commits into from
Jan 19, 2016

Conversation

deuill
Copy link
Owner

@deuill deuill commented Jan 9, 2016

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.

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.

The code builds and basic tests run, but more advanced tests fail
with "zend_mm_heap corrupted". More to come.
@deuill
Copy link
Owner Author

deuill commented Jan 9, 2016

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

This removes all "#ifdef PHP_MAJOR_VERSION" directives for version-specific
header files per supported PHP version. These headers are included only when
building against the specific PHP version, and are intended to abstract
differences between implementations in a fairly clean way.

This is still a mess of preprocessor directives, however.
This contains extensive API changes for the value package C bindings
as well changes to the receiver package (addition of Destroy method
and other small changes). These changes are mainly to address issues
with PHP7 compatibility, but should also benefit PHP5 targets.

Signed-off-by: Alex Palaistras <alex@deuill.org>
Signed-off-by: Alex Palaistras <alex@deuill.org>
@deuill
Copy link
Owner Author

deuill commented Jan 19, 2016

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.

deuill added a commit that referenced this pull request Jan 19, 2016
@deuill deuill merged commit 48df1d8 into master Jan 19, 2016
@deuill deuill deleted the feature/php7-support branch August 31, 2016 10:37
borancar pushed a commit to borancar/go-php that referenced this pull request Dec 1, 2019
lowering log level so we arent flooded with warnings for successful requests
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