@php-wasm/web-8-3 3.1.33 → 3.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/asyncify/php_8_3.js +104 -32
- package/jspi/{8_3_30 → 8_3_31}/php_8_3.wasm +0 -0
- package/jspi/php_8_3.js +309 -71
- package/package.json +3 -3
package/asyncify/php_8_3.js
CHANGED
|
@@ -4796,6 +4796,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
4796
4796
|
O_NONBLOCK: 2048,
|
|
4797
4797
|
POLLHUP: 16,
|
|
4798
4798
|
SETFL_MASK: 3072,
|
|
4799
|
+
socketTimeouts: new Map,
|
|
4799
4800
|
init: function () {
|
|
4800
4801
|
if (PHPLoader.bindUserSpace) {
|
|
4801
4802
|
addOnInit(() => {
|
|
@@ -5159,6 +5160,29 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5159
5160
|
return [promise, cancel];
|
|
5160
5161
|
},
|
|
5161
5162
|
noop: function () {},
|
|
5163
|
+
parseSocketTimeout: function (optionValuePtr, optionLen) {
|
|
5164
|
+
if (!optionValuePtr || optionLen < 8) {
|
|
5165
|
+
return null;
|
|
5166
|
+
}
|
|
5167
|
+
let seconds;
|
|
5168
|
+
let microseconds;
|
|
5169
|
+
if (optionLen >= 16) {
|
|
5170
|
+
seconds = Number(HEAP64[optionValuePtr >> 3]);
|
|
5171
|
+
microseconds = Number(HEAP64[(optionValuePtr + 8) >> 3]);
|
|
5172
|
+
} else {
|
|
5173
|
+
seconds = HEAP32[optionValuePtr >> 2];
|
|
5174
|
+
microseconds = HEAP32[(optionValuePtr + 4) >> 2];
|
|
5175
|
+
}
|
|
5176
|
+
if (
|
|
5177
|
+
!Number.isFinite(seconds) ||
|
|
5178
|
+
!Number.isFinite(microseconds) ||
|
|
5179
|
+
seconds < 0 ||
|
|
5180
|
+
microseconds < 0
|
|
5181
|
+
) {
|
|
5182
|
+
return null;
|
|
5183
|
+
}
|
|
5184
|
+
return seconds * 1e3 + Math.ceil(microseconds / 1e3);
|
|
5185
|
+
},
|
|
5162
5186
|
spawnProcess: function (command, args, options) {
|
|
5163
5187
|
if (Module['spawnProcess']) {
|
|
5164
5188
|
const spawned = Module['spawnProcess'](command, args, {
|
|
@@ -5187,6 +5211,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5187
5211
|
throw e;
|
|
5188
5212
|
},
|
|
5189
5213
|
shutdownSocket: function (socketd, how) {
|
|
5214
|
+
PHPWASM.socketTimeouts.delete(socketd);
|
|
5190
5215
|
const sock = getSocketFromFD(socketd);
|
|
5191
5216
|
const peer = Object.values(sock.peers)[0];
|
|
5192
5217
|
if (!peer) {
|
|
@@ -5256,41 +5281,74 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5256
5281
|
wakeUp(-ERRNO_CODES.ECONNREFUSED);
|
|
5257
5282
|
return;
|
|
5258
5283
|
}
|
|
5259
|
-
|
|
5284
|
+
// Wait for the connection to be established. A zero timeval
|
|
5285
|
+
// disables the timeout, matching SO_SNDTIMEO semantics.
|
|
5286
|
+
const sendTimeout = PHPWASM.socketTimeouts.get(sockfd)?.send;
|
|
5287
|
+
const timeout = sendTimeout ?? 3e4;
|
|
5260
5288
|
let resolved = false;
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5289
|
+
let timeoutId;
|
|
5290
|
+
let handleOpen;
|
|
5291
|
+
let handleError;
|
|
5292
|
+
let handleClose;
|
|
5293
|
+
const peer = PHPWASM.getAllPeers(sock).find(
|
|
5294
|
+
(candidate) => candidate.socket === ws
|
|
5295
|
+
);
|
|
5296
|
+
|
|
5297
|
+
const cleanupConnectListeners = () => {
|
|
5298
|
+
if (typeof timeoutId !== 'undefined') {
|
|
5270
5299
|
clearTimeout(timeoutId);
|
|
5271
|
-
ws.removeEventListener('error', handleError);
|
|
5272
|
-
ws.removeEventListener('close', handleClose);
|
|
5273
|
-
wakeUp(0);
|
|
5274
5300
|
}
|
|
5301
|
+
ws.removeEventListener('open', handleOpen);
|
|
5302
|
+
ws.removeEventListener('error', handleError);
|
|
5303
|
+
ws.removeEventListener('close', handleClose);
|
|
5275
5304
|
};
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5305
|
+
|
|
5306
|
+
const cleanupFailedConnect = (errno) => {
|
|
5307
|
+
try {
|
|
5308
|
+
if (
|
|
5309
|
+
ws.readyState !== ws.CLOSING &&
|
|
5310
|
+
ws.readyState !== ws.CLOSED
|
|
5311
|
+
) {
|
|
5312
|
+
ws.close();
|
|
5313
|
+
}
|
|
5314
|
+
} catch (e) {
|
|
5315
|
+
// Ignore close errors on an already-failed connect.
|
|
5283
5316
|
}
|
|
5317
|
+
if (peer) {
|
|
5318
|
+
SOCKFS.websocket_sock_ops.removePeer(sock, peer);
|
|
5319
|
+
}
|
|
5320
|
+
sock.connecting = false;
|
|
5321
|
+
sock.error = errno;
|
|
5284
5322
|
};
|
|
5285
|
-
|
|
5323
|
+
|
|
5324
|
+
const finishConnect = (result) => {
|
|
5286
5325
|
if (!resolved) {
|
|
5287
5326
|
resolved = true;
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5327
|
+
cleanupConnectListeners();
|
|
5328
|
+
if (result < 0) {
|
|
5329
|
+
cleanupFailedConnect(-result);
|
|
5330
|
+
}
|
|
5331
|
+
wakeUp(result);
|
|
5292
5332
|
}
|
|
5293
5333
|
};
|
|
5334
|
+
|
|
5335
|
+
if (timeout > 0) {
|
|
5336
|
+
timeoutId = setTimeout(() => {
|
|
5337
|
+
finishConnect(-ERRNO_CODES.ETIMEDOUT);
|
|
5338
|
+
}, timeout);
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5341
|
+
handleOpen = () => {
|
|
5342
|
+
finishConnect(0);
|
|
5343
|
+
};
|
|
5344
|
+
|
|
5345
|
+
handleError = () => {
|
|
5346
|
+
finishConnect(-ERRNO_CODES.ECONNREFUSED);
|
|
5347
|
+
};
|
|
5348
|
+
|
|
5349
|
+
handleClose = () => {
|
|
5350
|
+
finishConnect(-ERRNO_CODES.ECONNREFUSED);
|
|
5351
|
+
};
|
|
5294
5352
|
ws.addEventListener('open', handleOpen);
|
|
5295
5353
|
ws.addEventListener('error', handleError);
|
|
5296
5354
|
ws.addEventListener('close', handleClose);
|
|
@@ -7664,21 +7722,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7664
7722
|
const SO_SNDTIMEO = 67;
|
|
7665
7723
|
const IPPROTO_TCP = 6;
|
|
7666
7724
|
const TCP_NODELAY = 1;
|
|
7725
|
+
if (
|
|
7726
|
+
level === SOL_SOCKET &&
|
|
7727
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7728
|
+
) {
|
|
7729
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7730
|
+
optionValuePtr,
|
|
7731
|
+
optionLen
|
|
7732
|
+
);
|
|
7733
|
+
if (timeoutMs === null) {
|
|
7734
|
+
return -1;
|
|
7735
|
+
}
|
|
7736
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7737
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7738
|
+
timeouts.receive = timeoutMs;
|
|
7739
|
+
} else {
|
|
7740
|
+
timeouts.send = timeoutMs;
|
|
7741
|
+
}
|
|
7742
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7743
|
+
return 0;
|
|
7744
|
+
}
|
|
7667
7745
|
const isForwardable =
|
|
7668
7746
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7669
7747
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7670
|
-
|
|
7671
|
-
level === SOL_SOCKET &&
|
|
7672
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7673
|
-
if (!isForwardable && !isIgnorable) {
|
|
7748
|
+
if (!isForwardable) {
|
|
7674
7749
|
console.warn(
|
|
7675
7750
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7676
7751
|
);
|
|
7677
7752
|
return -1;
|
|
7678
7753
|
}
|
|
7679
|
-
if (isIgnorable) {
|
|
7680
|
-
return 0;
|
|
7681
|
-
}
|
|
7682
7754
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7683
7755
|
if (!ws) {
|
|
7684
7756
|
return -1;
|
|
Binary file
|
package/jspi/php_8_3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import dependencyFilename from './
|
|
1
|
+
import dependencyFilename from './8_3_31/php_8_3.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
4
|
-
const phpVersionString = '8.3.
|
|
3
|
+
export const dependenciesTotalSize = 20763515;
|
|
4
|
+
const phpVersionString = '8.3.31';
|
|
5
5
|
export function init(RuntimeName, PHPLoader) {
|
|
6
6
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
7
7
|
var Module = typeof PHPLoader != 'undefined' ? PHPLoader : {};
|
|
@@ -174,6 +174,9 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
174
174
|
}
|
|
175
175
|
function getWasmImports() {
|
|
176
176
|
Asyncify.instrumentWasmImports(wasmImports);
|
|
177
|
+
wasmImports['__c_longjmp'] ??= new WebAssembly.Tag({
|
|
178
|
+
parameters: ['i32'],
|
|
179
|
+
});
|
|
177
180
|
var imports = {
|
|
178
181
|
env: wasmImports,
|
|
179
182
|
wasi_snapshot_preview1: wasmImports,
|
|
@@ -4670,6 +4673,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
4670
4673
|
O_NONBLOCK: 2048,
|
|
4671
4674
|
POLLHUP: 16,
|
|
4672
4675
|
SETFL_MASK: 3072,
|
|
4676
|
+
socketTimeouts: new Map,
|
|
4673
4677
|
init: function () {
|
|
4674
4678
|
if (PHPLoader.bindUserSpace) {
|
|
4675
4679
|
addOnInit(() => {
|
|
@@ -5033,6 +5037,29 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5033
5037
|
return [promise, cancel];
|
|
5034
5038
|
},
|
|
5035
5039
|
noop: function () {},
|
|
5040
|
+
parseSocketTimeout: function (optionValuePtr, optionLen) {
|
|
5041
|
+
if (!optionValuePtr || optionLen < 8) {
|
|
5042
|
+
return null;
|
|
5043
|
+
}
|
|
5044
|
+
let seconds;
|
|
5045
|
+
let microseconds;
|
|
5046
|
+
if (optionLen >= 16) {
|
|
5047
|
+
seconds = Number(HEAP64[optionValuePtr >> 3]);
|
|
5048
|
+
microseconds = Number(HEAP64[(optionValuePtr + 8) >> 3]);
|
|
5049
|
+
} else {
|
|
5050
|
+
seconds = HEAP32[optionValuePtr >> 2];
|
|
5051
|
+
microseconds = HEAP32[(optionValuePtr + 4) >> 2];
|
|
5052
|
+
}
|
|
5053
|
+
if (
|
|
5054
|
+
!Number.isFinite(seconds) ||
|
|
5055
|
+
!Number.isFinite(microseconds) ||
|
|
5056
|
+
seconds < 0 ||
|
|
5057
|
+
microseconds < 0
|
|
5058
|
+
) {
|
|
5059
|
+
return null;
|
|
5060
|
+
}
|
|
5061
|
+
return seconds * 1e3 + Math.ceil(microseconds / 1e3);
|
|
5062
|
+
},
|
|
5036
5063
|
spawnProcess: function (command, args, options) {
|
|
5037
5064
|
if (Module['spawnProcess']) {
|
|
5038
5065
|
const spawned = Module['spawnProcess'](command, args, {
|
|
@@ -5061,6 +5088,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5061
5088
|
throw e;
|
|
5062
5089
|
},
|
|
5063
5090
|
shutdownSocket: function (socketd, how) {
|
|
5091
|
+
PHPWASM.socketTimeouts.delete(socketd);
|
|
5064
5092
|
const sock = getSocketFromFD(socketd);
|
|
5065
5093
|
const peer = Object.values(sock.peers)[0];
|
|
5066
5094
|
if (!peer) {
|
|
@@ -5130,41 +5158,74 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5130
5158
|
wakeUp(-ERRNO_CODES.ECONNREFUSED);
|
|
5131
5159
|
return;
|
|
5132
5160
|
}
|
|
5133
|
-
|
|
5161
|
+
// Wait for the connection to be established. A zero timeval
|
|
5162
|
+
// disables the timeout, matching SO_SNDTIMEO semantics.
|
|
5163
|
+
const sendTimeout = PHPWASM.socketTimeouts.get(sockfd)?.send;
|
|
5164
|
+
const timeout = sendTimeout ?? 3e4;
|
|
5134
5165
|
let resolved = false;
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5166
|
+
let timeoutId;
|
|
5167
|
+
let handleOpen;
|
|
5168
|
+
let handleError;
|
|
5169
|
+
let handleClose;
|
|
5170
|
+
const peer = PHPWASM.getAllPeers(sock).find(
|
|
5171
|
+
(candidate) => candidate.socket === ws
|
|
5172
|
+
);
|
|
5173
|
+
|
|
5174
|
+
const cleanupConnectListeners = () => {
|
|
5175
|
+
if (typeof timeoutId !== 'undefined') {
|
|
5144
5176
|
clearTimeout(timeoutId);
|
|
5145
|
-
ws.removeEventListener('error', handleError);
|
|
5146
|
-
ws.removeEventListener('close', handleClose);
|
|
5147
|
-
wakeUp(0);
|
|
5148
5177
|
}
|
|
5178
|
+
ws.removeEventListener('open', handleOpen);
|
|
5179
|
+
ws.removeEventListener('error', handleError);
|
|
5180
|
+
ws.removeEventListener('close', handleClose);
|
|
5149
5181
|
};
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5182
|
+
|
|
5183
|
+
const cleanupFailedConnect = (errno) => {
|
|
5184
|
+
try {
|
|
5185
|
+
if (
|
|
5186
|
+
ws.readyState !== ws.CLOSING &&
|
|
5187
|
+
ws.readyState !== ws.CLOSED
|
|
5188
|
+
) {
|
|
5189
|
+
ws.close();
|
|
5190
|
+
}
|
|
5191
|
+
} catch (e) {
|
|
5192
|
+
// Ignore close errors on an already-failed connect.
|
|
5157
5193
|
}
|
|
5194
|
+
if (peer) {
|
|
5195
|
+
SOCKFS.websocket_sock_ops.removePeer(sock, peer);
|
|
5196
|
+
}
|
|
5197
|
+
sock.connecting = false;
|
|
5198
|
+
sock.error = errno;
|
|
5158
5199
|
};
|
|
5159
|
-
|
|
5200
|
+
|
|
5201
|
+
const finishConnect = (result) => {
|
|
5160
5202
|
if (!resolved) {
|
|
5161
5203
|
resolved = true;
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5204
|
+
cleanupConnectListeners();
|
|
5205
|
+
if (result < 0) {
|
|
5206
|
+
cleanupFailedConnect(-result);
|
|
5207
|
+
}
|
|
5208
|
+
wakeUp(result);
|
|
5166
5209
|
}
|
|
5167
5210
|
};
|
|
5211
|
+
|
|
5212
|
+
if (timeout > 0) {
|
|
5213
|
+
timeoutId = setTimeout(() => {
|
|
5214
|
+
finishConnect(-ERRNO_CODES.ETIMEDOUT);
|
|
5215
|
+
}, timeout);
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
handleOpen = () => {
|
|
5219
|
+
finishConnect(0);
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
handleError = () => {
|
|
5223
|
+
finishConnect(-ERRNO_CODES.ECONNREFUSED);
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
handleClose = () => {
|
|
5227
|
+
finishConnect(-ERRNO_CODES.ECONNREFUSED);
|
|
5228
|
+
};
|
|
5168
5229
|
ws.addEventListener('open', handleOpen);
|
|
5169
5230
|
ws.addEventListener('error', handleError);
|
|
5170
5231
|
ws.addEventListener('close', handleClose);
|
|
@@ -7534,21 +7595,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7534
7595
|
const SO_SNDTIMEO = 67;
|
|
7535
7596
|
const IPPROTO_TCP = 6;
|
|
7536
7597
|
const TCP_NODELAY = 1;
|
|
7598
|
+
if (
|
|
7599
|
+
level === SOL_SOCKET &&
|
|
7600
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7601
|
+
) {
|
|
7602
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7603
|
+
optionValuePtr,
|
|
7604
|
+
optionLen
|
|
7605
|
+
);
|
|
7606
|
+
if (timeoutMs === null) {
|
|
7607
|
+
return -1;
|
|
7608
|
+
}
|
|
7609
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7610
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7611
|
+
timeouts.receive = timeoutMs;
|
|
7612
|
+
} else {
|
|
7613
|
+
timeouts.send = timeoutMs;
|
|
7614
|
+
}
|
|
7615
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7616
|
+
return 0;
|
|
7617
|
+
}
|
|
7537
7618
|
const isForwardable =
|
|
7538
7619
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7539
7620
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7540
|
-
|
|
7541
|
-
level === SOL_SOCKET &&
|
|
7542
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7543
|
-
if (!isForwardable && !isIgnorable) {
|
|
7621
|
+
if (!isForwardable) {
|
|
7544
7622
|
console.warn(
|
|
7545
7623
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7546
7624
|
);
|
|
7547
7625
|
return -1;
|
|
7548
7626
|
}
|
|
7549
|
-
if (isIgnorable) {
|
|
7550
|
-
return 0;
|
|
7551
|
-
}
|
|
7552
7627
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7553
7628
|
if (!ws) {
|
|
7554
7629
|
return -1;
|
|
@@ -8016,6 +8091,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8016
8091
|
_php_date_get_interface_ce,
|
|
8017
8092
|
_php_date_get_timezone_ce,
|
|
8018
8093
|
_get_timezone_info,
|
|
8094
|
+
_php_info_print_table_header,
|
|
8019
8095
|
_php_info_print_table_row,
|
|
8020
8096
|
_php_info_print_table_start,
|
|
8021
8097
|
_php_info_print_table_end,
|
|
@@ -8052,6 +8128,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8052
8128
|
_zend_call_function,
|
|
8053
8129
|
_zend_call_known_function,
|
|
8054
8130
|
_zend_call_known_instance_method_with_2_params,
|
|
8131
|
+
_zend_lookup_class_ex,
|
|
8055
8132
|
_destroy_op_array,
|
|
8056
8133
|
_zend_destroy_static_vars,
|
|
8057
8134
|
__is_numeric_string_ex,
|
|
@@ -8061,6 +8138,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8061
8138
|
__try_convert_to_string,
|
|
8062
8139
|
_zval_get_double_func,
|
|
8063
8140
|
_zval_get_string_func,
|
|
8141
|
+
_zend_is_true,
|
|
8064
8142
|
_numeric_compare_function,
|
|
8065
8143
|
_compare_function,
|
|
8066
8144
|
_instanceof_function_slow,
|
|
@@ -8100,20 +8178,25 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8100
8178
|
_add_next_index_stringl,
|
|
8101
8179
|
_zend_register_internal_class_ex,
|
|
8102
8180
|
_zend_class_implements,
|
|
8181
|
+
_zend_register_internal_interface,
|
|
8182
|
+
_zend_is_callable,
|
|
8103
8183
|
_zend_fcall_info_init,
|
|
8104
8184
|
_zend_declare_typed_property,
|
|
8105
8185
|
_zend_try_assign_typed_ref_bool,
|
|
8106
8186
|
_zend_try_assign_typed_ref_long,
|
|
8107
8187
|
_zend_try_assign_typed_ref_str,
|
|
8108
8188
|
_zend_try_assign_typed_ref_arr,
|
|
8189
|
+
_zend_declare_property,
|
|
8109
8190
|
_zend_declare_class_constant_ex,
|
|
8110
8191
|
_zend_update_property,
|
|
8111
8192
|
_zend_replace_error_handling,
|
|
8112
8193
|
_zend_restore_error_handling,
|
|
8194
|
+
_zend_is_iterable,
|
|
8113
8195
|
_zend_hash_str_find,
|
|
8114
8196
|
__zend_hash_init,
|
|
8115
8197
|
__zend_new_array_0,
|
|
8116
8198
|
__zend_new_array,
|
|
8199
|
+
_zend_array_count,
|
|
8117
8200
|
_zend_hash_update,
|
|
8118
8201
|
_zend_hash_str_update,
|
|
8119
8202
|
_zend_hash_next_index_insert,
|
|
@@ -8122,6 +8205,10 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8122
8205
|
_zend_array_destroy,
|
|
8123
8206
|
_zend_hash_copy,
|
|
8124
8207
|
_zend_hash_index_find,
|
|
8208
|
+
_zend_hash_move_forward_ex,
|
|
8209
|
+
_zend_hash_get_current_key_zval_ex,
|
|
8210
|
+
_zend_hash_get_current_key_type_ex,
|
|
8211
|
+
_zend_hash_get_current_data_ex,
|
|
8125
8212
|
_zend_hash_sort_ex,
|
|
8126
8213
|
_zend_execute,
|
|
8127
8214
|
_zend_register_ini_entries_ex,
|
|
@@ -8137,17 +8224,24 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8137
8224
|
_zend_create_internal_iterator_zval,
|
|
8138
8225
|
_zend_throw_exception,
|
|
8139
8226
|
_zend_throw_exception_ex,
|
|
8227
|
+
_zend_throw_exception_object,
|
|
8140
8228
|
_zend_strtod,
|
|
8141
8229
|
_gc_possible_root,
|
|
8142
8230
|
_zend_get_gc_buffer_create,
|
|
8143
8231
|
_zend_get_gc_buffer_grow,
|
|
8144
8232
|
_zend_object_std_init,
|
|
8145
8233
|
_zend_object_std_dtor,
|
|
8234
|
+
_zend_objects_new,
|
|
8146
8235
|
_zend_objects_clone_members,
|
|
8147
8236
|
_zend_std_get_properties,
|
|
8237
|
+
_zend_std_read_property,
|
|
8238
|
+
_zend_std_write_property,
|
|
8148
8239
|
_zend_std_compare_objects,
|
|
8240
|
+
_zend_std_has_property,
|
|
8149
8241
|
_zend_objects_store_del,
|
|
8242
|
+
_zend_do_implement_interface,
|
|
8150
8243
|
_smart_str_erealloc,
|
|
8244
|
+
_strtoll,
|
|
8151
8245
|
_strlen,
|
|
8152
8246
|
_munmap,
|
|
8153
8247
|
_abort,
|
|
@@ -8163,25 +8257,38 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8163
8257
|
_dlclose,
|
|
8164
8258
|
_strcmp,
|
|
8165
8259
|
_getenv,
|
|
8260
|
+
___wasm_setjmp,
|
|
8261
|
+
___wasm_setjmp_test,
|
|
8262
|
+
___wasm_longjmp,
|
|
8166
8263
|
_atoi,
|
|
8264
|
+
_clock_gettime,
|
|
8167
8265
|
_strrchr,
|
|
8168
8266
|
_realloc,
|
|
8169
8267
|
_strcasecmp,
|
|
8170
8268
|
_memchr,
|
|
8269
|
+
_isalnum,
|
|
8171
8270
|
_strncmp,
|
|
8172
8271
|
_tolower,
|
|
8173
8272
|
_strtok_r,
|
|
8273
|
+
_unlink,
|
|
8174
8274
|
_fileno,
|
|
8175
8275
|
_fread,
|
|
8176
8276
|
_fclose,
|
|
8177
8277
|
_strtoul,
|
|
8178
8278
|
_strstr,
|
|
8279
|
+
_write,
|
|
8179
8280
|
_close,
|
|
8281
|
+
_fseek,
|
|
8180
8282
|
_fwrite,
|
|
8181
8283
|
_gettimeofday,
|
|
8182
8284
|
_stat,
|
|
8183
8285
|
_fopen,
|
|
8286
|
+
_getcwd,
|
|
8184
8287
|
_open,
|
|
8288
|
+
_rename,
|
|
8289
|
+
_mkdir,
|
|
8290
|
+
_rmdir,
|
|
8291
|
+
_opendir,
|
|
8185
8292
|
_strncpy,
|
|
8186
8293
|
_siprintf,
|
|
8187
8294
|
_localtime_r,
|
|
@@ -8200,6 +8307,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8200
8307
|
_fmod,
|
|
8201
8308
|
_wasm_popen,
|
|
8202
8309
|
_wasm_php_exec,
|
|
8310
|
+
_strerror_r,
|
|
8203
8311
|
_php_pollfd_for,
|
|
8204
8312
|
_htons,
|
|
8205
8313
|
_ntohs,
|
|
@@ -8213,9 +8321,14 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8213
8321
|
_expf,
|
|
8214
8322
|
_qsort,
|
|
8215
8323
|
_calloc,
|
|
8324
|
+
_writev,
|
|
8216
8325
|
_fgets,
|
|
8217
8326
|
_initgroups,
|
|
8218
8327
|
_atol,
|
|
8328
|
+
_closedir,
|
|
8329
|
+
_readdir,
|
|
8330
|
+
_posix_memalign,
|
|
8331
|
+
_ftell,
|
|
8219
8332
|
_wasm_read,
|
|
8220
8333
|
_feof,
|
|
8221
8334
|
_strncat,
|
|
@@ -8244,9 +8357,28 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8244
8357
|
_php_wasm_init,
|
|
8245
8358
|
_wasm_free,
|
|
8246
8359
|
_wasm_trace,
|
|
8360
|
+
_getentropy,
|
|
8361
|
+
_pthread_cond_signal,
|
|
8362
|
+
_pthread_cond_wait,
|
|
8363
|
+
_pthread_condattr_destroy,
|
|
8364
|
+
_pthread_condattr_init,
|
|
8365
|
+
_pthread_condattr_setclock,
|
|
8366
|
+
_pthread_mutex_trylock,
|
|
8367
|
+
_pthread_mutexattr_destroy,
|
|
8368
|
+
_pthread_mutexattr_init,
|
|
8369
|
+
_pthread_mutexattr_settype,
|
|
8370
|
+
_sched_yield,
|
|
8371
|
+
_sqlite3_auto_extension,
|
|
8372
|
+
_sqlite3_cancel_auto_extension,
|
|
8373
|
+
_pthread_mutex_init,
|
|
8374
|
+
_pthread_mutex_destroy,
|
|
8375
|
+
_pthread_mutex_lock,
|
|
8376
|
+
_pthread_mutex_unlock,
|
|
8247
8377
|
_rewind,
|
|
8248
8378
|
_modf,
|
|
8249
8379
|
_round,
|
|
8380
|
+
_pthread_cond_init,
|
|
8381
|
+
_pthread_cond_destroy,
|
|
8250
8382
|
___extenddftf2,
|
|
8251
8383
|
___letf2,
|
|
8252
8384
|
___floatunditf,
|
|
@@ -8255,6 +8387,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8255
8387
|
___cxa_atexit,
|
|
8256
8388
|
___dl_seterr,
|
|
8257
8389
|
__emscripten_find_dylib,
|
|
8390
|
+
_pthread_cond_timedwait,
|
|
8258
8391
|
_mbstowcs,
|
|
8259
8392
|
_emscripten_builtin_memalign,
|
|
8260
8393
|
__emscripten_timeout,
|
|
@@ -8279,6 +8412,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8279
8412
|
memory,
|
|
8280
8413
|
___stack_pointer,
|
|
8281
8414
|
__indirect_function_table,
|
|
8415
|
+
___c_longjmp,
|
|
8282
8416
|
wasmTable,
|
|
8283
8417
|
wasmMemory;
|
|
8284
8418
|
function assignWasmExports(wasmExports) {
|
|
@@ -8290,6 +8424,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8290
8424
|
wasmExports['php_date_get_timezone_ce'];
|
|
8291
8425
|
_get_timezone_info = Module['_get_timezone_info'] =
|
|
8292
8426
|
wasmExports['get_timezone_info'];
|
|
8427
|
+
_php_info_print_table_header = Module['_php_info_print_table_header'] =
|
|
8428
|
+
wasmExports['php_info_print_table_header'];
|
|
8293
8429
|
_php_info_print_table_row = Module['_php_info_print_table_row'] =
|
|
8294
8430
|
wasmExports['php_info_print_table_row'];
|
|
8295
8431
|
_php_info_print_table_start = Module['_php_info_print_table_start'] =
|
|
@@ -8350,6 +8486,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8350
8486
|
_zend_call_known_instance_method_with_2_params = Module[
|
|
8351
8487
|
'_zend_call_known_instance_method_with_2_params'
|
|
8352
8488
|
] = wasmExports['zend_call_known_instance_method_with_2_params'];
|
|
8489
|
+
_zend_lookup_class_ex = Module['_zend_lookup_class_ex'] =
|
|
8490
|
+
wasmExports['zend_lookup_class_ex'];
|
|
8353
8491
|
_destroy_op_array = Module['_destroy_op_array'] =
|
|
8354
8492
|
wasmExports['destroy_op_array'];
|
|
8355
8493
|
_zend_destroy_static_vars = Module['_zend_destroy_static_vars'] =
|
|
@@ -8368,6 +8506,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8368
8506
|
wasmExports['zval_get_double_func'];
|
|
8369
8507
|
_zval_get_string_func = Module['_zval_get_string_func'] =
|
|
8370
8508
|
wasmExports['zval_get_string_func'];
|
|
8509
|
+
_zend_is_true = Module['_zend_is_true'] = wasmExports['zend_is_true'];
|
|
8371
8510
|
_numeric_compare_function = Module['_numeric_compare_function'] =
|
|
8372
8511
|
wasmExports['numeric_compare_function'];
|
|
8373
8512
|
_compare_function = Module['_compare_function'] =
|
|
@@ -8451,6 +8590,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8451
8590
|
] = wasmExports['zend_register_internal_class_ex'];
|
|
8452
8591
|
_zend_class_implements = Module['_zend_class_implements'] =
|
|
8453
8592
|
wasmExports['zend_class_implements'];
|
|
8593
|
+
_zend_register_internal_interface = Module[
|
|
8594
|
+
'_zend_register_internal_interface'
|
|
8595
|
+
] = wasmExports['zend_register_internal_interface'];
|
|
8596
|
+
_zend_is_callable = Module['_zend_is_callable'] =
|
|
8597
|
+
wasmExports['zend_is_callable'];
|
|
8454
8598
|
_zend_fcall_info_init = Module['_zend_fcall_info_init'] =
|
|
8455
8599
|
wasmExports['zend_fcall_info_init'];
|
|
8456
8600
|
_zend_declare_typed_property = Module['_zend_declare_typed_property'] =
|
|
@@ -8467,6 +8611,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8467
8611
|
_zend_try_assign_typed_ref_arr = Module[
|
|
8468
8612
|
'_zend_try_assign_typed_ref_arr'
|
|
8469
8613
|
] = wasmExports['zend_try_assign_typed_ref_arr'];
|
|
8614
|
+
_zend_declare_property = Module['_zend_declare_property'] =
|
|
8615
|
+
wasmExports['zend_declare_property'];
|
|
8470
8616
|
_zend_declare_class_constant_ex = Module[
|
|
8471
8617
|
'_zend_declare_class_constant_ex'
|
|
8472
8618
|
] = wasmExports['zend_declare_class_constant_ex'];
|
|
@@ -8476,6 +8622,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8476
8622
|
wasmExports['zend_replace_error_handling'];
|
|
8477
8623
|
_zend_restore_error_handling = Module['_zend_restore_error_handling'] =
|
|
8478
8624
|
wasmExports['zend_restore_error_handling'];
|
|
8625
|
+
_zend_is_iterable = Module['_zend_is_iterable'] =
|
|
8626
|
+
wasmExports['zend_is_iterable'];
|
|
8479
8627
|
_zend_hash_str_find = Module['_zend_hash_str_find'] =
|
|
8480
8628
|
wasmExports['zend_hash_str_find'];
|
|
8481
8629
|
__zend_hash_init = Module['__zend_hash_init'] =
|
|
@@ -8484,6 +8632,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8484
8632
|
wasmExports['_zend_new_array_0'];
|
|
8485
8633
|
__zend_new_array = Module['__zend_new_array'] =
|
|
8486
8634
|
wasmExports['_zend_new_array'];
|
|
8635
|
+
_zend_array_count = Module['_zend_array_count'] =
|
|
8636
|
+
wasmExports['zend_array_count'];
|
|
8487
8637
|
_zend_hash_update = Module['_zend_hash_update'] =
|
|
8488
8638
|
wasmExports['zend_hash_update'];
|
|
8489
8639
|
_zend_hash_str_update = Module['_zend_hash_str_update'] =
|
|
@@ -8500,6 +8650,17 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8500
8650
|
wasmExports['zend_hash_copy'];
|
|
8501
8651
|
_zend_hash_index_find = Module['_zend_hash_index_find'] =
|
|
8502
8652
|
wasmExports['zend_hash_index_find'];
|
|
8653
|
+
_zend_hash_move_forward_ex = Module['_zend_hash_move_forward_ex'] =
|
|
8654
|
+
wasmExports['zend_hash_move_forward_ex'];
|
|
8655
|
+
_zend_hash_get_current_key_zval_ex = Module[
|
|
8656
|
+
'_zend_hash_get_current_key_zval_ex'
|
|
8657
|
+
] = wasmExports['zend_hash_get_current_key_zval_ex'];
|
|
8658
|
+
_zend_hash_get_current_key_type_ex = Module[
|
|
8659
|
+
'_zend_hash_get_current_key_type_ex'
|
|
8660
|
+
] = wasmExports['zend_hash_get_current_key_type_ex'];
|
|
8661
|
+
_zend_hash_get_current_data_ex = Module[
|
|
8662
|
+
'_zend_hash_get_current_data_ex'
|
|
8663
|
+
] = wasmExports['zend_hash_get_current_data_ex'];
|
|
8503
8664
|
_zend_hash_sort_ex = Module['_zend_hash_sort_ex'] =
|
|
8504
8665
|
wasmExports['zend_hash_sort_ex'];
|
|
8505
8666
|
_zend_execute = Module['_zend_execute'] = wasmExports['zend_execute'];
|
|
@@ -8530,6 +8691,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8530
8691
|
wasmExports['zend_throw_exception'];
|
|
8531
8692
|
_zend_throw_exception_ex = Module['_zend_throw_exception_ex'] =
|
|
8532
8693
|
wasmExports['zend_throw_exception_ex'];
|
|
8694
|
+
_zend_throw_exception_object = Module['_zend_throw_exception_object'] =
|
|
8695
|
+
wasmExports['zend_throw_exception_object'];
|
|
8533
8696
|
_zend_strtod = Module['_zend_strtod'] = wasmExports['zend_strtod'];
|
|
8534
8697
|
_gc_possible_root = Module['_gc_possible_root'] =
|
|
8535
8698
|
wasmExports['gc_possible_root'];
|
|
@@ -8541,16 +8704,27 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8541
8704
|
wasmExports['zend_object_std_init'];
|
|
8542
8705
|
_zend_object_std_dtor = Module['_zend_object_std_dtor'] =
|
|
8543
8706
|
wasmExports['zend_object_std_dtor'];
|
|
8707
|
+
_zend_objects_new = Module['_zend_objects_new'] =
|
|
8708
|
+
wasmExports['zend_objects_new'];
|
|
8544
8709
|
_zend_objects_clone_members = Module['_zend_objects_clone_members'] =
|
|
8545
8710
|
wasmExports['zend_objects_clone_members'];
|
|
8546
8711
|
_zend_std_get_properties = Module['_zend_std_get_properties'] =
|
|
8547
8712
|
wasmExports['zend_std_get_properties'];
|
|
8713
|
+
_zend_std_read_property = Module['_zend_std_read_property'] =
|
|
8714
|
+
wasmExports['zend_std_read_property'];
|
|
8715
|
+
_zend_std_write_property = Module['_zend_std_write_property'] =
|
|
8716
|
+
wasmExports['zend_std_write_property'];
|
|
8548
8717
|
_zend_std_compare_objects = Module['_zend_std_compare_objects'] =
|
|
8549
8718
|
wasmExports['zend_std_compare_objects'];
|
|
8719
|
+
_zend_std_has_property = Module['_zend_std_has_property'] =
|
|
8720
|
+
wasmExports['zend_std_has_property'];
|
|
8550
8721
|
_zend_objects_store_del = Module['_zend_objects_store_del'] =
|
|
8551
8722
|
wasmExports['zend_objects_store_del'];
|
|
8723
|
+
_zend_do_implement_interface = Module['_zend_do_implement_interface'] =
|
|
8724
|
+
wasmExports['zend_do_implement_interface'];
|
|
8552
8725
|
_smart_str_erealloc = Module['_smart_str_erealloc'] =
|
|
8553
8726
|
wasmExports['smart_str_erealloc'];
|
|
8727
|
+
_strtoll = Module['_strtoll'] = wasmExports['strtoll'];
|
|
8554
8728
|
_strlen = Module['_strlen'] = wasmExports['strlen'];
|
|
8555
8729
|
_munmap = Module['_munmap'] = wasmExports['munmap'];
|
|
8556
8730
|
_abort = Module['_abort'] = wasmExports['abort'];
|
|
@@ -8570,25 +8744,42 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8570
8744
|
_dlclose = Module['_dlclose'] = wasmExports['dlclose'];
|
|
8571
8745
|
_strcmp = Module['_strcmp'] = wasmExports['strcmp'];
|
|
8572
8746
|
_getenv = Module['_getenv'] = wasmExports['getenv'];
|
|
8747
|
+
___wasm_setjmp = Module['___wasm_setjmp'] =
|
|
8748
|
+
wasmExports['__wasm_setjmp'];
|
|
8749
|
+
___wasm_setjmp_test = Module['___wasm_setjmp_test'] =
|
|
8750
|
+
wasmExports['__wasm_setjmp_test'];
|
|
8751
|
+
___wasm_longjmp = Module['___wasm_longjmp'] =
|
|
8752
|
+
wasmExports['__wasm_longjmp'];
|
|
8573
8753
|
_atoi = Module['_atoi'] = wasmExports['atoi'];
|
|
8754
|
+
_clock_gettime = Module['_clock_gettime'] =
|
|
8755
|
+
wasmExports['clock_gettime'];
|
|
8574
8756
|
_strrchr = Module['_strrchr'] = wasmExports['strrchr'];
|
|
8575
8757
|
_realloc = Module['_realloc'] = wasmExports['realloc'];
|
|
8576
8758
|
_strcasecmp = Module['_strcasecmp'] = wasmExports['strcasecmp'];
|
|
8577
8759
|
_memchr = Module['_memchr'] = wasmExports['memchr'];
|
|
8760
|
+
_isalnum = Module['_isalnum'] = wasmExports['isalnum'];
|
|
8578
8761
|
_strncmp = Module['_strncmp'] = wasmExports['strncmp'];
|
|
8579
8762
|
_tolower = Module['_tolower'] = wasmExports['tolower'];
|
|
8580
8763
|
_strtok_r = Module['_strtok_r'] = wasmExports['strtok_r'];
|
|
8764
|
+
_unlink = Module['_unlink'] = wasmExports['unlink'];
|
|
8581
8765
|
_fileno = Module['_fileno'] = wasmExports['fileno'];
|
|
8582
8766
|
_fread = Module['_fread'] = wasmExports['fread'];
|
|
8583
8767
|
_fclose = Module['_fclose'] = wasmExports['fclose'];
|
|
8584
8768
|
_strtoul = Module['_strtoul'] = wasmExports['strtoul'];
|
|
8585
8769
|
_strstr = Module['_strstr'] = wasmExports['strstr'];
|
|
8770
|
+
_write = Module['_write'] = wasmExports['write'];
|
|
8586
8771
|
_close = Module['_close'] = wasmExports['close'];
|
|
8772
|
+
_fseek = Module['_fseek'] = wasmExports['fseek'];
|
|
8587
8773
|
_fwrite = Module['_fwrite'] = wasmExports['fwrite'];
|
|
8588
8774
|
_gettimeofday = Module['_gettimeofday'] = wasmExports['gettimeofday'];
|
|
8589
8775
|
_stat = Module['_stat'] = wasmExports['stat'];
|
|
8590
8776
|
_fopen = Module['_fopen'] = wasmExports['fopen'];
|
|
8777
|
+
_getcwd = Module['_getcwd'] = wasmExports['getcwd'];
|
|
8591
8778
|
_open = Module['_open'] = wasmExports['open'];
|
|
8779
|
+
_rename = Module['_rename'] = wasmExports['rename'];
|
|
8780
|
+
_mkdir = Module['_mkdir'] = wasmExports['mkdir'];
|
|
8781
|
+
_rmdir = Module['_rmdir'] = wasmExports['rmdir'];
|
|
8782
|
+
_opendir = Module['_opendir'] = wasmExports['opendir'];
|
|
8592
8783
|
_strncpy = Module['_strncpy'] = wasmExports['strncpy'];
|
|
8593
8784
|
_siprintf = Module['_siprintf'] = wasmExports['siprintf'];
|
|
8594
8785
|
_localtime_r = Module['_localtime_r'] = wasmExports['localtime_r'];
|
|
@@ -8608,6 +8799,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8608
8799
|
_wasm_popen = Module['_wasm_popen'] = wasmExports['wasm_popen'];
|
|
8609
8800
|
_wasm_php_exec = Module['_wasm_php_exec'] =
|
|
8610
8801
|
wasmExports['wasm_php_exec'];
|
|
8802
|
+
_strerror_r = Module['_strerror_r'] = wasmExports['strerror_r'];
|
|
8611
8803
|
_php_pollfd_for = Module['_php_pollfd_for'] =
|
|
8612
8804
|
wasmExports['php_pollfd_for'];
|
|
8613
8805
|
_htons = wasmExports['htons'];
|
|
@@ -8622,9 +8814,15 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8622
8814
|
_expf = Module['_expf'] = wasmExports['expf'];
|
|
8623
8815
|
_qsort = Module['_qsort'] = wasmExports['qsort'];
|
|
8624
8816
|
_calloc = wasmExports['calloc'];
|
|
8817
|
+
_writev = Module['_writev'] = wasmExports['writev'];
|
|
8625
8818
|
_fgets = Module['_fgets'] = wasmExports['fgets'];
|
|
8626
8819
|
_initgroups = Module['_initgroups'] = wasmExports['initgroups'];
|
|
8627
8820
|
_atol = Module['_atol'] = wasmExports['atol'];
|
|
8821
|
+
_closedir = Module['_closedir'] = wasmExports['closedir'];
|
|
8822
|
+
_readdir = Module['_readdir'] = wasmExports['readdir'];
|
|
8823
|
+
_posix_memalign = Module['_posix_memalign'] =
|
|
8824
|
+
wasmExports['posix_memalign'];
|
|
8825
|
+
_ftell = Module['_ftell'] = wasmExports['ftell'];
|
|
8628
8826
|
_wasm_read = Module['_wasm_read'] = wasmExports['wasm_read'];
|
|
8629
8827
|
_feof = Module['_feof'] = wasmExports['feof'];
|
|
8630
8828
|
_strncat = Module['_strncat'] = wasmExports['strncat'];
|
|
@@ -8678,9 +8876,46 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8678
8876
|
Module['_wasm_free'] =
|
|
8679
8877
|
wasmExports['wasm_free'];
|
|
8680
8878
|
_wasm_trace = Module['_wasm_trace'] = wasmExports['wasm_trace'];
|
|
8879
|
+
_getentropy = Module['_getentropy'] = wasmExports['getentropy'];
|
|
8880
|
+
_pthread_cond_signal = Module['_pthread_cond_signal'] =
|
|
8881
|
+
wasmExports['pthread_cond_signal'];
|
|
8882
|
+
_pthread_cond_wait = Module['_pthread_cond_wait'] =
|
|
8883
|
+
wasmExports['pthread_cond_wait'];
|
|
8884
|
+
_pthread_condattr_destroy = Module['_pthread_condattr_destroy'] =
|
|
8885
|
+
wasmExports['pthread_condattr_destroy'];
|
|
8886
|
+
_pthread_condattr_init = Module['_pthread_condattr_init'] =
|
|
8887
|
+
wasmExports['pthread_condattr_init'];
|
|
8888
|
+
_pthread_condattr_setclock = Module['_pthread_condattr_setclock'] =
|
|
8889
|
+
wasmExports['pthread_condattr_setclock'];
|
|
8890
|
+
_pthread_mutex_trylock = Module['_pthread_mutex_trylock'] =
|
|
8891
|
+
wasmExports['pthread_mutex_trylock'];
|
|
8892
|
+
_pthread_mutexattr_destroy = Module['_pthread_mutexattr_destroy'] =
|
|
8893
|
+
wasmExports['pthread_mutexattr_destroy'];
|
|
8894
|
+
_pthread_mutexattr_init = Module['_pthread_mutexattr_init'] =
|
|
8895
|
+
wasmExports['pthread_mutexattr_init'];
|
|
8896
|
+
_pthread_mutexattr_settype = Module['_pthread_mutexattr_settype'] =
|
|
8897
|
+
wasmExports['pthread_mutexattr_settype'];
|
|
8898
|
+
_sched_yield = Module['_sched_yield'] = wasmExports['sched_yield'];
|
|
8899
|
+
_sqlite3_auto_extension = Module['_sqlite3_auto_extension'] =
|
|
8900
|
+
wasmExports['sqlite3_auto_extension'];
|
|
8901
|
+
_sqlite3_cancel_auto_extension = Module[
|
|
8902
|
+
'_sqlite3_cancel_auto_extension'
|
|
8903
|
+
] = wasmExports['sqlite3_cancel_auto_extension'];
|
|
8904
|
+
_pthread_mutex_init = Module['_pthread_mutex_init'] =
|
|
8905
|
+
wasmExports['pthread_mutex_init'];
|
|
8906
|
+
_pthread_mutex_destroy = Module['_pthread_mutex_destroy'] =
|
|
8907
|
+
wasmExports['pthread_mutex_destroy'];
|
|
8908
|
+
_pthread_mutex_lock = Module['_pthread_mutex_lock'] =
|
|
8909
|
+
wasmExports['pthread_mutex_lock'];
|
|
8910
|
+
_pthread_mutex_unlock = Module['_pthread_mutex_unlock'] =
|
|
8911
|
+
wasmExports['pthread_mutex_unlock'];
|
|
8681
8912
|
_rewind = Module['_rewind'] = wasmExports['rewind'];
|
|
8682
8913
|
_modf = Module['_modf'] = wasmExports['modf'];
|
|
8683
8914
|
_round = Module['_round'] = wasmExports['round'];
|
|
8915
|
+
_pthread_cond_init = Module['_pthread_cond_init'] =
|
|
8916
|
+
wasmExports['pthread_cond_init'];
|
|
8917
|
+
_pthread_cond_destroy = Module['_pthread_cond_destroy'] =
|
|
8918
|
+
wasmExports['pthread_cond_destroy'];
|
|
8684
8919
|
___extenddftf2 = Module['___extenddftf2'] =
|
|
8685
8920
|
wasmExports['__extenddftf2'];
|
|
8686
8921
|
___letf2 = Module['___letf2'] = wasmExports['__letf2'];
|
|
@@ -8691,6 +8926,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8691
8926
|
___cxa_atexit = Module['___cxa_atexit'] = wasmExports['__cxa_atexit'];
|
|
8692
8927
|
___dl_seterr = wasmExports['__dl_seterr'];
|
|
8693
8928
|
__emscripten_find_dylib = wasmExports['_emscripten_find_dylib'];
|
|
8929
|
+
_pthread_cond_timedwait = Module['_pthread_cond_timedwait'] =
|
|
8930
|
+
wasmExports['pthread_cond_timedwait'];
|
|
8694
8931
|
_mbstowcs = Module['_mbstowcs'] = wasmExports['mbstowcs'];
|
|
8695
8932
|
_emscripten_builtin_memalign =
|
|
8696
8933
|
wasmExports['emscripten_builtin_memalign'];
|
|
@@ -8732,63 +8969,64 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8732
8969
|
wasmExports['__stack_pointer'];
|
|
8733
8970
|
__indirect_function_table = wasmTable =
|
|
8734
8971
|
wasmExports['__indirect_function_table'];
|
|
8972
|
+
___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
|
|
8735
8973
|
}
|
|
8736
|
-
var _file_globals = (Module['_file_globals'] =
|
|
8737
|
-
var _sapi_module = (Module['_sapi_module'] =
|
|
8738
|
-
var _sapi_globals = (Module['_sapi_globals'] =
|
|
8739
|
-
var _compiler_globals = (Module['_compiler_globals'] =
|
|
8740
|
-
var _executor_globals = (Module['_executor_globals'] =
|
|
8741
|
-
var _zend_compile_string = (Module['_zend_compile_string'] =
|
|
8742
|
-
var _zend_ce_traversable = (Module['_zend_ce_traversable'] =
|
|
8743
|
-
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] =
|
|
8744
|
-
var _zend_ce_iterator = (Module['_zend_ce_iterator'] =
|
|
8745
|
-
var _zend_ce_serializable = (Module['_zend_ce_serializable'] =
|
|
8746
|
-
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] =
|
|
8747
|
-
var _zend_ce_countable = (Module['_zend_ce_countable'] =
|
|
8748
|
-
var _zend_ce_stringable = (Module['_zend_ce_stringable'] =
|
|
8749
|
-
var _zend_ce_exception = (Module['_zend_ce_exception'] =
|
|
8750
|
-
var _zend_ce_throwable = (Module['_zend_ce_throwable'] =
|
|
8974
|
+
var _file_globals = (Module['_file_globals'] = 13777752);
|
|
8975
|
+
var _sapi_module = (Module['_sapi_module'] = 13755800);
|
|
8976
|
+
var _sapi_globals = (Module['_sapi_globals'] = 13755944);
|
|
8977
|
+
var _compiler_globals = (Module['_compiler_globals'] = 13780576);
|
|
8978
|
+
var _executor_globals = (Module['_executor_globals'] = 13780960);
|
|
8979
|
+
var _zend_compile_string = (Module['_zend_compile_string'] = 13782268);
|
|
8980
|
+
var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 13669484);
|
|
8981
|
+
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 13669488);
|
|
8982
|
+
var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 13669492);
|
|
8983
|
+
var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 13669496);
|
|
8984
|
+
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 13669500);
|
|
8985
|
+
var _zend_ce_countable = (Module['_zend_ce_countable'] = 13669504);
|
|
8986
|
+
var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 13669508);
|
|
8987
|
+
var _zend_ce_exception = (Module['_zend_ce_exception'] = 13778480);
|
|
8988
|
+
var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 13778476);
|
|
8751
8989
|
var _zend_ce_division_by_zero_error = (Module[
|
|
8752
8990
|
'_zend_ce_division_by_zero_error'
|
|
8753
|
-
] =
|
|
8991
|
+
] = 13778608);
|
|
8754
8992
|
var _zend_ce_unhandled_match_error = (Module[
|
|
8755
8993
|
'_zend_ce_unhandled_match_error'
|
|
8756
|
-
] =
|
|
8757
|
-
var _zend_empty_string = (Module['_zend_empty_string'] =
|
|
8994
|
+
] = 13778612);
|
|
8995
|
+
var _zend_empty_string = (Module['_zend_empty_string'] = 13667952);
|
|
8758
8996
|
var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
|
|
8759
|
-
|
|
8760
|
-
var _zend_one_char_string = (Module['_zend_one_char_string'] =
|
|
8761
|
-
var _std_object_handlers = (Module['_std_object_handlers'] =
|
|
8762
|
-
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] =
|
|
8763
|
-
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] =
|
|
8997
|
+
13668020);
|
|
8998
|
+
var _zend_one_char_string = (Module['_zend_one_char_string'] = 13668032);
|
|
8999
|
+
var _std_object_handlers = (Module['_std_object_handlers'] = 13166144);
|
|
9000
|
+
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 13669900);
|
|
9001
|
+
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 13669904);
|
|
8764
9002
|
var ___memory_base = (Module['___memory_base'] = 0);
|
|
8765
9003
|
var ___table_base = (Module['___table_base'] = 1);
|
|
8766
|
-
var _stdout = (Module['_stdout'] =
|
|
9004
|
+
var _stdout = (Module['_stdout'] = 13661136);
|
|
8767
9005
|
var __playground_zend_side_module_data_exports = (Module[
|
|
8768
9006
|
'__playground_zend_side_module_data_exports'
|
|
8769
|
-
] =
|
|
9007
|
+
] = 13167488);
|
|
8770
9008
|
var __playground_zend_side_module_function_exports = (Module[
|
|
8771
9009
|
'__playground_zend_side_module_function_exports'
|
|
8772
|
-
] =
|
|
8773
|
-
var _timezone = (Module['_timezone'] =
|
|
8774
|
-
var _tzname = (Module['_tzname'] =
|
|
8775
|
-
var ___heap_base =
|
|
9010
|
+
] = 13167584);
|
|
9011
|
+
var _timezone = (Module['_timezone'] = 14117552);
|
|
9012
|
+
var _tzname = (Module['_tzname'] = 14117560);
|
|
9013
|
+
var ___heap_base = 15179824;
|
|
8776
9014
|
var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
|
|
8777
|
-
|
|
9015
|
+
14131228);
|
|
8778
9016
|
var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
|
|
8779
9017
|
'__ZTVN10__cxxabiv120__si_class_type_infoE'
|
|
8780
|
-
] =
|
|
9018
|
+
] = 13661424);
|
|
8781
9019
|
var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
|
|
8782
9020
|
'__ZTVN10__cxxabiv117__class_type_infoE'
|
|
8783
|
-
] =
|
|
9021
|
+
] = 13661384);
|
|
8784
9022
|
var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
|
|
8785
9023
|
'__ZTVN10__cxxabiv121__vmi_class_type_infoE'
|
|
8786
|
-
] =
|
|
9024
|
+
] = 13661476);
|
|
8787
9025
|
var __ZTISt20bad_array_new_length = (Module[
|
|
8788
9026
|
'__ZTISt20bad_array_new_length'
|
|
8789
|
-
] =
|
|
8790
|
-
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] =
|
|
8791
|
-
var __ZTISt12length_error = (Module['__ZTISt12length_error'] =
|
|
9027
|
+
] = 13661596);
|
|
9028
|
+
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 13661672);
|
|
9029
|
+
var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 13661692);
|
|
8792
9030
|
var wasmImports = {
|
|
8793
9031
|
__assert_fail: ___assert_fail,
|
|
8794
9032
|
__asyncjs__js_module_onMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-3",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.35",
|
|
4
4
|
"description": "PHP 8.3 WebAssembly binaries for web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"node": ">=20.10.0",
|
|
36
36
|
"npm": ">=10.2.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9d29b73246e12465902d8ce42c0fe747125bc69a",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"wasm-feature-detect": "1.8.0",
|
|
41
|
-
"@php-wasm/universal": "3.1.
|
|
41
|
+
"@php-wasm/universal": "3.1.35"
|
|
42
42
|
},
|
|
43
43
|
"packageManager": "npm@10.9.2",
|
|
44
44
|
"overrides": {
|