go-php7 icon indicating copy to clipboard operation
go-php7 copied to clipboard

Compatible to 7.1.x? And how i build it from source?

Open Dexus opened this issue 8 years ago • 9 comments

Hi Taowen,

is it compatible to php7.1.x?

And how i use it to build it with own source? Like with #2 as setup.sh?

Dexus avatar Jul 19 '17 13:07 Dexus

@Dexus not tested with php7.1.x

Yes, using the script provided in https://github.com/taowen/go-php7/issues/2

taowen avatar Jul 19 '17 13:07 taowen

hmm, okay I'm not able to create it this way... not 7.0 nor 7.1.

can you look into it and make clear hot how to install and what are the requirments?

Dexus avatar Jul 19 '17 15:07 Dexus

You need to cmopile libphp7.a first. Are you able to do that? It is statically linked into the golang binary with hard coded path https://github.com/taowen/go-php7/blob/master/engine/php7-static.go

If you are not using ubuntu, the hard coded path is likely to be not working for you.

taowen avatar Jul 19 '17 15:07 taowen

Okay now I get

...go-php7/engine/engine.c:170: undefined reference to get_accel_zend_extension'`

and the build brakes...

Dexus avatar Jul 20 '17 07:07 Dexus

seems like php 7.1 issue?

taowen avatar Jul 20 '17 07:07 taowen

no its with 7.0

Dexus avatar Jul 20 '17 07:07 Dexus

After removing the loader code from engine.c for the opcache it works.

Dexus avatar Jul 20 '17 07:07 Dexus

After change some files i was able to use php7.1 but with the ppa:ondrej/php repo https://github.com/Dexus/go-php7/

Dexus avatar Jul 20 '17 09:07 Dexus

excellent

taowen avatar Jul 20 '17 09:07 taowen