Skip to content

Commit 47112d1

Browse files
authored
[PHP] SOAP extension (#2832)
## Motivation for the change, related issues Adds support for SOAP extension to all PHP builds. ```php <plaintext> <?php //Create the client object $soapclient = new SoapClient('https://www.w3schools.com/xml/tempconvert.asmx?WSDL'); //Use the functions of the client, the params of the function are in //the associative array $params = array('Celsius' => '25'); $response = $soapclient->CelsiusToFahrenheit($params); var_dump($response); // 77 // Get the Celsius degrees from the Farenheit $param = array('Fahrenheit' => '77'); $response = $soapclient->FahrenheitToCelsius($param); var_dump($response); // 25 ``` Supersedes #1986 Fixes #1236 ## Remaining work - [x] Rebuild all PHP binaries - [x] Remove the additional vitest options (stack trace length=100) ## Testing Instructions (or ideally a Blueprint) * Go to `/phpinfo.php`, confirm the SOAP extension is enabled * Paste the script above as index.php in the code editor, refresh the WordPress homepage, confirm you see the expected responses
1 parent a729dab commit 47112d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+35528
-31785
lines changed

packages/php-wasm/compile/build.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ const argParser = yargs(process.argv.slice(2))
6161
choices: ['yes', 'no'],
6262
description: 'Build with libxml support',
6363
},
64+
WITH_SOAP: {
65+
type: 'string',
66+
choices: ['yes', 'no'],
67+
description: 'Build with SOAP support',
68+
},
6469
WITH_LIBZIP: {
6570
type: 'string',
6671
choices: ['yes', 'no'],
@@ -186,6 +191,7 @@ const platformDefaults = {
186191
WITH_FILEINFO: 'yes',
187192
WITH_ICONV: 'yes',
188193
WITH_LIBXML: 'yes',
194+
WITH_SOAP: 'yes',
189195
WITH_EXIF: 'yes',
190196
WITH_GD: 'yes',
191197
WITH_MBSTRING: 'yes',
@@ -252,6 +258,8 @@ await asyncSpawn(
252258
'--build-arg',
253259
getArg('WITH_LIBXML'),
254260
'--build-arg',
261+
getArg('WITH_SOAP'),
262+
'--build-arg',
255263
getArg('WITH_LIBZIP'),
256264
'--build-arg',
257265
getArg('WITH_EXIF'),

0 commit comments

Comments
 (0)