You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i installed the package in my project, i had the following error:
`$ go get
github.com/deuill/go-php
In file included from ../github.com/deuill/go-php/engine.go:14:
In file included from ../github.com/deuill/go-php/include/receiver.h:15:
../github.com/deuill/go-php/include/php7/_receiver.h:12:34: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static int _receiver_method_call(zend_string *method, zend_object *object, INTERNAL_FUNCTION_PARAMETERS);
^~~~~~~~~~~
zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
^
In file included from ../github.com/deuill/go-php/engine.go:14:
In file included from ../github.com/deuill/go-php/include/receiver.h:15:
../github.com/deuill/go-php/include/php7/_receiver.h:13:66: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static zend_function *_receiver_method_get(zend_object **object, zend_string *name, const zval *key);
^~~~~~~~~~~
zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
^
2 errors generated.`
The text was updated successfully, but these errors were encountered:
Which version of PHP do you have installed? Did you install the development headers and library needed for building go-php (as per the README)?
You're not using Linux, or not on a distribution that ships packages for the required dependencies, you can try building the Docker image with make docker-image and building inside/against that environment.
when i installed the package in my project, i had the following error:
`$ go get
github.com/deuill/go-php
In file included from ../github.com/deuill/go-php/engine.go:14:
In file included from ../github.com/deuill/go-php/include/receiver.h:15:
../github.com/deuill/go-php/include/php7/_receiver.h:12:34: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static int _receiver_method_call(zend_string *method, zend_object *object, INTERNAL_FUNCTION_PARAMETERS);
^~~~~~~~~~~
zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
^
In file included from ../github.com/deuill/go-php/engine.go:14:
In file included from ../github.com/deuill/go-php/include/receiver.h:15:
../github.com/deuill/go-php/include/php7/_receiver.h:13:66: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static zend_function *_receiver_method_get(zend_object **object, zend_string *name, const zval *key);
^~~~~~~~~~~
zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
^
2 errors generated.`
The text was updated successfully, but these errors were encountered: