// +build !php7

package engine

// #cgo CFLAGS: -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
// #cgo CFLAGS: -I/usr/include/Zend -Iinclude/php5
// #cgo LDFLAGS: -lphp5
import "C"

// +build !php7

package engine

// #cgo CFLAGS: -Iinclude/php5
// #cgo LDFLAGS: -lphp5
import "C"

--- 
+++ 
@@ -2,6 +2,7 @@
 
 package engine
 
-// #cgo CFLAGS: -Iinclude/php5
+// #cgo CFLAGS: -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
+// #cgo CFLAGS: -I/usr/include/Zend -Iinclude/php5
 // #cgo LDFLAGS: -lphp5
 import "C"
Add necessary include directives for PHP 5 path

Certain distributions, such as Debian, ship include files for version 5
of PHP in the `/usr/include/php5` directory. This commit adds directives
necessary for building go-php against packages provided by such distros.
