kitech / php-go

Write PHP extension using go/golang. Zend API wrapper for go/golang.
882 stars 108 forks source link

How do you compile for PHP 5? #21

Closed sanbornm closed 7 years ago

sanbornm commented 7 years ago

PHP7 works great but when I try to compile on PHP 5 I get:

../../vendor/github.com/kitech/php-go/zend/szend.c: In function '_gozend_function_exists_ht':
../../vendor/github.com/kitech/php-go/zend/szend.c:189:2: error: unknown type name 'zend_string'
  zend_string *name;
  ^
../../vendor/github.com/kitech/php-go/zend/szend.c:191:2: error: unknown type name 'zend_string'
  zend_string *lcname;
kitech commented 7 years ago

oh, i forgot the php v5. need more work for php v5. thanks.

kitech commented 7 years ago

should be fixed. give a try if have time.