-
Notifications
You must be signed in to change notification settings - Fork 307
Explore curl support #1133
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
Closed
Closed
Explore curl support #1133
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9ddf54b
PHP: Support http:// https:// and ssl:// stream wrappers
adamziel 6085484
First take – Build libcurl, compile PHP with it
adamziel 5e9c1f2
Merge branch 'ssl-network-bridge' into curl-support
adamziel 25aecd1
First roadblock: getaddrinfo() thread failed to start
adamziel a0ea651
Disable AsynchDNS
bgrgicak 19087b5
verbose output
bgrgicak 0c84fd1
Add zlib
bgrgicak b5d49b4
Add OpenSSL
bgrgicak 305fa1a
Reset PHP build to trunk
bgrgicak 63fb62c
Merge branch 'trunk' into curl-support
bgrgicak 0628695
Rebuild PHP 8.0 with CURL
bgrgicak b0a49c9
Provide a custom implementation for select()
adamziel e4017b2
Rebuild PHP
adamziel ae82388
Fix loop in request
bgrgicak 130739b
Add asyncify functions
bgrgicak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM playground-php-wasm:base | ||
|
||
RUN mkdir -p /root/lib/include /root/lib/lib | ||
COPY ./libz/dist/root/lib/include /root/lib/include | ||
COPY ./libz/dist/root/lib/lib /root/lib/lib | ||
COPY ./libopenssl/dist/root/lib/lib /root/lib/lib | ||
|
||
ARG CURL_VERSION="curl-7.69.1" | ||
|
||
RUN /root/copy-lib.sh lib-libz | ||
RUN set -euxo pipefail && \ | ||
source /root/emsdk/emsdk_env.sh && \ | ||
wget https://curl.haxx.se/download/$CURL_VERSION.tar.gz && \ | ||
tar xf $CURL_VERSION.tar.gz | ||
|
||
WORKDIR /root/$CURL_VERSION | ||
|
||
RUN CPPFLAGS="-I/root/lib/include " \ | ||
LDFLAGS="-L/root/lib/lib " \ | ||
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ | ||
source /root/emsdk/emsdk_env.sh && \ | ||
emconfigure ./configure \ | ||
--build i386-pc-linux-gnu \ | ||
--target wasm32-unknown-emscripten \ | ||
--prefix=/root/install/ \ | ||
--disable-shared \ | ||
--enable-static \ | ||
--with-openssl \ | ||
--enable-https \ | ||
--enable-http \ | ||
--disable-pthreads \ | ||
--enable-websockets \ | ||
--disable-threaded-resolver \ | ||
--with-zlib=/root/lib | ||
|
||
RUN source /root/emsdk/emsdk_env.sh && EMCC_SKIP="-lc -lz -lcurl" EMCC_FLAGS="-sSIDE_MODULE" emmake make || true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not needed for v1