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

Enable CURL in Playground Web #1935

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions packages/php-wasm/compile/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ const platformDefaults = {
WITH_LIBZIP: 'yes',
WITH_SQLITE: 'yes',
WITH_JSPI: 'no',
},
web: {
WITH_CURL: 'yes',
WITH_FILEINFO: 'yes',
WITH_ICONV: 'yes',
WITH_LIBXML: 'yes',
Expand All @@ -137,19 +136,11 @@ const platformDefaults = {
WITH_OPENSSL: 'yes',
WITH_WS_NETWORKING_PROXY: 'yes',
},
web: {},
node: {
WITH_CURL: 'yes',
WITH_FILEINFO: 'yes',
WITH_ICONV: 'yes',
WITH_LIBXML: 'yes',
WITH_GD: 'yes',
WITH_MBSTRING: 'yes',
WITH_MBREGEX: 'yes',
WITH_CLI_SAPI: 'yes',
WITH_OPENSSL: 'yes',
WITH_NODEFS: 'yes',
WITH_MYSQL: 'yes',
WITH_WS_NETWORKING_PROXY: 'yes',
},
};
const platform = args.PLATFORM;
Expand Down
6 changes: 5 additions & 1 deletion packages/php-wasm/compile/php/php_wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,11 @@ static char *wasm_sapi_getenv(char *name, unsigned long name_len)

SAPI_API sapi_module_struct php_wasm_sapi_module = {
"wasm", /* name */
"PHP WASM SAPI", /* pretty name */
#ifdef PLAYGROUND_JSPI
"PHP WASM SAPI (JSPI)", /* pretty name */
#else
"PHP WASM SAPI (Asyncify)", /* pretty name */
#endif

wasm_sapi_module_startup, /* startup */
wasm_sapi_shutdown_wrapper, /* shutdown */
Expand Down
3 changes: 1 addition & 2 deletions packages/php-wasm/universal/src/lib/php.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ export class PHP implements Disposable {
'always_populate_raw_post_data = -1',
'upload_max_filesize = 2000M',
'post_max_size = 2000M',
'disable_functions = curl_exec,curl_multi_exec',
'allow_url_fopen = Off',
'allow_url_fopen = On',
'allow_url_include = Off',
'session.save_path = /home/web_user',
'implicit_flush = 1',
Expand Down
Binary file modified packages/php-wasm/web/public/php/asyncify/7_0_33/php_7_0.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/7_1_30/php_7_1.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/7_2_34/php_7_2.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/7_3_33/php_7_3.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/7_4_33/php_7_4.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/8_0_30/php_8_0.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/8_1_23/php_8_1.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/8_2_10/php_8_2.wasm
Binary file not shown.
Binary file modified packages/php-wasm/web/public/php/asyncify/8_3_0/php_8_3.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_7_0.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_7_1.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_7_2.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_7_3.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_7_4.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_8_0.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_8_1.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/php-wasm/web/public/php/asyncify/php_8_2.js

Large diffs are not rendered by default.

Loading