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

Error while getting dependencies #53

Open
workdreamer opened this issue Mar 16, 2018 · 1 comment
Open

Error while getting dependencies #53

workdreamer opened this issue Mar 16, 2018 · 1 comment

Comments

@workdreamer
Copy link

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.`

@deuill
Copy link
Owner

deuill commented Mar 16, 2018

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.

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