-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Can't use Frankenphp as a golang library #1167
Comments
Ok I seems I need to install watcher. Why I went wrong here is because the documentation says Since the title says "Optional". I skipped it. But it's not optional unless you turn those features off in the configure step I think? That's unclear. I suggest you amend the documentation. Unfortunately, watcher has really bad documentation on how to actually install it and make it available. Looks like I can copy the watcher includes to: So this problem is resolved but now I get
Next battle. That's a file in the php sources. Yeah, please provide more thorough examples from start to finish. Nothing quite works out of the gate. |
To build without the watcher you can do something like this in the meantime I think:
|
I got a little further.
|
Ok, I've solved it. I need to "install" the PHP binary and all it's development files with. So after the
Then simply run I also needed to copy the watcher It would be awesome if the docs could be updated with more full and clear examples. But I think I got there in the end. |
Don't hesitate to send docs PR, improving this is on my (long) todo list, but any help is welcome. |
Don't forget it needs to be a ZTS build @hookenz! |
What happened?
I grabbed an example of using Franken as a go library
I thought perhaps watcher-c.h is in the php code? but I can't locate it. Where does that file come from?
Build Type
Custom (tell us more in the description)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
The text was updated successfully, but these errors were encountered: