-
Notifications
You must be signed in to change notification settings - Fork 114
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 I use custom php-extension inside pib? #24
Comments
Sorry, I don't have much time to investigate loading a extension dynamically from network or filesystem. Currently the only tested way to use php extension is to static link it into the binary. |
Static linking would be ok. But is it possible for php extensions? Where can I read about it? |
A simple extension demo is add: a5f47e7 Explanation:
|
With today's latest emscripten, it compiles and runs |
Great :) Thank you. |
Updated emscripten to 1.38.31 and got bunch of errors like:
Did you use 1.38.31 version, or some more later one? |
After switching to php-7.3.0, both functions from |
I build the example using docker image |
Oh, now I see. Fortunately, emacsen 1.38.31 was enough for me. |
Good. First part of my problem is solved :) But, there's second one :-/ Samples that I've found use something like Didn't find anything useful in google, though. Perhaps, I don't know what to search for. |
You can call javascript functions using emacripten's emscripten_run_script. |
@kaineer I did it when I created vrzno. If you're still interested let me know. |
Usual way to use extension with php is to copy compiled extension into
extension_dir
and then addingextension=ext-name.o
tophp.ini
.Is there any way to include some custom extension into pib bundle?
I'm just started to learn something about emacsen, so I yet can't figure solution by myself.
The text was updated successfully, but these errors were encountered: