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

Riak 2.2.0 and PHP7 support #3

Open
kodekraft opened this issue Feb 28, 2017 · 3 comments
Open

Riak 2.2.0 and PHP7 support #3

kodekraft opened this issue Feb 28, 2017 · 3 comments

Comments

@kodekraft
Copy link

kodekraft commented Feb 28, 2017

Which versions of the basho/riak-pb and basho/protobuf packages should I use to accommodate Riak 2.2.0 and PHP7?

I'm currently using the following branch for my PHP extension:
https://github.com/basho/php-protobuf/commits/serggp_php7

because this is the only one that works. I tried the php7_merge branch but that resulted in a segfault from php-fpm.

@christophermancini
Copy link

christophermancini commented Feb 28, 2017

The php7-merge branch is the ideal branch. Can you share the errors you received on it? I was able to run all of our integration tests against it from our Riak Client library: https://travis-ci.org/basho/riak-phppb-client/builds/197525530

@kodekraft
Copy link
Author

kodekraft commented Mar 9, 2017

Hi Chris,

All the tests passed for me too when I ran the make tests.
Here was the error produced in the httpd error_log:

PHP Warning:  PHP Startup: protobuf: Unable to initialize module\nModule compiled with build ID=API20151012,NTS\nPHP    compiled with build ID=API20151012,TS\nThese options need to match\n in Unknown on line 0
[Thu Mar 09 13:11:48.429198 2017] [mpm_event:notice] [pid 32090:tid 140314702362752] AH00489: Apache/2.4.6 (CentOS) PHP/7.0.15 configured -- resuming normal operations
[Thu Mar 09 13:11:48.429233 2017] [core:notice] [pid 32090:tid 140314702362752] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Mar 09 13:13:36.004360 2017] [proxy_fcgi:error] [pid 32095:tid 140314261124864] (104)Connection reset by peer: [client 10.166.33.30:59472] AH01075: Error dispatching request to :

If I restart the php-fpm service, I can execute a single riak transaction, but the next one and all subsequent transactions will fail.

When I checkout and compile the serggp_php7 branch, I don't have this issue.

@christophermancini
Copy link

@kodekraft Try rebuilding the module again, but first do a make distclean on the build files before doing the make and make install. I have had this issue sometimes when attempting to build the module with an unclean directory with leftover build files from previous attempts.

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

No branches or pull requests

2 participants