@php-wasm/web-8-2 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_2.js +104 -32
- package/jspi/{8_2_30 → 8_2_31}/php_8_2.wasm +0 -0
- package/jspi/php_8_2.js +306 -68
- package/package.json +3 -3
package/asyncify/php_8_2.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_2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import dependencyFilename from './
|
|
1
|
+
import dependencyFilename from './8_2_31/php_8_2.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
4
|
-
const phpVersionString = '8.2.
|
|
3
|
+
export const dependenciesTotalSize = 20469270;
|
|
4
|
+
const phpVersionString = '8.2.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;
|
|
@@ -8052,6 +8127,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8052
8127
|
_zend_call_function,
|
|
8053
8128
|
_zend_call_known_function,
|
|
8054
8129
|
_zend_call_known_instance_method_with_2_params,
|
|
8130
|
+
_zend_lookup_class_ex,
|
|
8055
8131
|
_destroy_op_array,
|
|
8056
8132
|
_zend_destroy_static_vars,
|
|
8057
8133
|
__is_numeric_string_ex,
|
|
@@ -8061,6 +8137,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8061
8137
|
__try_convert_to_string,
|
|
8062
8138
|
_zval_get_double_func,
|
|
8063
8139
|
_zval_get_string_func,
|
|
8140
|
+
_zend_is_true,
|
|
8064
8141
|
_numeric_compare_function,
|
|
8065
8142
|
_compare_function,
|
|
8066
8143
|
_instanceof_function_slow,
|
|
@@ -8100,18 +8177,23 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8100
8177
|
_add_next_index_stringl,
|
|
8101
8178
|
_zend_register_internal_class_ex,
|
|
8102
8179
|
_zend_class_implements,
|
|
8180
|
+
_zend_register_internal_interface,
|
|
8181
|
+
_zend_is_callable,
|
|
8103
8182
|
_zend_fcall_info_init,
|
|
8104
8183
|
_zend_declare_typed_property,
|
|
8105
8184
|
_zend_try_assign_typed_ref_long,
|
|
8106
8185
|
_zend_try_assign_typed_ref_arr,
|
|
8186
|
+
_zend_declare_property,
|
|
8107
8187
|
_zend_declare_class_constant_ex,
|
|
8108
8188
|
_zend_update_property,
|
|
8109
8189
|
_zend_replace_error_handling,
|
|
8110
8190
|
_zend_restore_error_handling,
|
|
8191
|
+
_zend_is_iterable,
|
|
8111
8192
|
_zend_hash_str_find,
|
|
8112
8193
|
__zend_hash_init,
|
|
8113
8194
|
__zend_new_array_0,
|
|
8114
8195
|
__zend_new_array,
|
|
8196
|
+
_zend_array_count,
|
|
8115
8197
|
_zend_hash_update,
|
|
8116
8198
|
_zend_hash_str_update,
|
|
8117
8199
|
_zend_hash_next_index_insert,
|
|
@@ -8120,6 +8202,10 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8120
8202
|
_zend_array_destroy,
|
|
8121
8203
|
_zend_hash_copy,
|
|
8122
8204
|
_zend_hash_index_find,
|
|
8205
|
+
_zend_hash_move_forward_ex,
|
|
8206
|
+
_zend_hash_get_current_key_zval_ex,
|
|
8207
|
+
_zend_hash_get_current_key_type_ex,
|
|
8208
|
+
_zend_hash_get_current_data_ex,
|
|
8123
8209
|
_zend_hash_sort_ex,
|
|
8124
8210
|
_zend_execute,
|
|
8125
8211
|
_zend_register_ini_entries_ex,
|
|
@@ -8136,14 +8222,22 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8136
8222
|
_zend_create_internal_iterator_zval,
|
|
8137
8223
|
_zend_throw_exception,
|
|
8138
8224
|
_zend_throw_exception_ex,
|
|
8225
|
+
_zend_throw_exception_object,
|
|
8139
8226
|
_zend_strtod,
|
|
8140
8227
|
_gc_possible_root,
|
|
8141
8228
|
_zend_object_std_init,
|
|
8142
8229
|
_zend_object_std_dtor,
|
|
8230
|
+
_zend_objects_new,
|
|
8143
8231
|
_zend_objects_clone_members,
|
|
8232
|
+
_zend_std_get_properties,
|
|
8233
|
+
_zend_std_read_property,
|
|
8234
|
+
_zend_std_write_property,
|
|
8144
8235
|
_zend_std_compare_objects,
|
|
8236
|
+
_zend_std_has_property,
|
|
8145
8237
|
_zend_objects_store_del,
|
|
8238
|
+
_zend_do_implement_interface,
|
|
8146
8239
|
_smart_str_erealloc,
|
|
8240
|
+
_strtoll,
|
|
8147
8241
|
_strlen,
|
|
8148
8242
|
_munmap,
|
|
8149
8243
|
_abort,
|
|
@@ -8157,26 +8251,38 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8157
8251
|
_dlclose,
|
|
8158
8252
|
_strcmp,
|
|
8159
8253
|
_getenv,
|
|
8254
|
+
___wasm_setjmp,
|
|
8255
|
+
___wasm_setjmp_test,
|
|
8256
|
+
___wasm_longjmp,
|
|
8160
8257
|
_atoi,
|
|
8161
8258
|
___errno_location,
|
|
8162
8259
|
_strrchr,
|
|
8163
8260
|
_realloc,
|
|
8164
8261
|
_strcasecmp,
|
|
8165
8262
|
_memchr,
|
|
8263
|
+
_isalnum,
|
|
8166
8264
|
_strncmp,
|
|
8167
8265
|
_tolower,
|
|
8168
8266
|
_strtok_r,
|
|
8267
|
+
_unlink,
|
|
8169
8268
|
_fileno,
|
|
8170
8269
|
_fread,
|
|
8171
8270
|
_fclose,
|
|
8172
8271
|
_strtoul,
|
|
8173
8272
|
_strstr,
|
|
8273
|
+
_write,
|
|
8174
8274
|
_close,
|
|
8275
|
+
_fseek,
|
|
8175
8276
|
_fwrite,
|
|
8176
8277
|
_gettimeofday,
|
|
8177
8278
|
_stat,
|
|
8178
8279
|
_fopen,
|
|
8280
|
+
_getcwd,
|
|
8179
8281
|
_open,
|
|
8282
|
+
_rename,
|
|
8283
|
+
_mkdir,
|
|
8284
|
+
_rmdir,
|
|
8285
|
+
_opendir,
|
|
8180
8286
|
_strncpy,
|
|
8181
8287
|
_siprintf,
|
|
8182
8288
|
_localtime_r,
|
|
@@ -8201,6 +8307,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8201
8307
|
_htonl,
|
|
8202
8308
|
_strcpy,
|
|
8203
8309
|
_strcat,
|
|
8310
|
+
_clock_gettime,
|
|
8204
8311
|
_tzset,
|
|
8205
8312
|
_wasm_sleep,
|
|
8206
8313
|
_isdigit,
|
|
@@ -8209,12 +8316,18 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8209
8316
|
_qsort,
|
|
8210
8317
|
_mmap,
|
|
8211
8318
|
_calloc,
|
|
8319
|
+
_writev,
|
|
8212
8320
|
_fgets,
|
|
8213
8321
|
_initgroups,
|
|
8214
8322
|
_atol,
|
|
8323
|
+
_closedir,
|
|
8324
|
+
_readdir,
|
|
8325
|
+
_posix_memalign,
|
|
8326
|
+
_ftell,
|
|
8215
8327
|
_wasm_read,
|
|
8216
8328
|
_feof,
|
|
8217
8329
|
_strncat,
|
|
8330
|
+
_strerror_r,
|
|
8218
8331
|
___ctype_get_mb_cur_max,
|
|
8219
8332
|
___wrap_usleep,
|
|
8220
8333
|
___wrap_select,
|
|
@@ -8240,9 +8353,28 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8240
8353
|
_php_wasm_init,
|
|
8241
8354
|
_wasm_free,
|
|
8242
8355
|
_wasm_trace,
|
|
8356
|
+
_getentropy,
|
|
8357
|
+
_pthread_cond_signal,
|
|
8358
|
+
_pthread_cond_wait,
|
|
8359
|
+
_pthread_condattr_destroy,
|
|
8360
|
+
_pthread_condattr_init,
|
|
8361
|
+
_pthread_condattr_setclock,
|
|
8362
|
+
_pthread_mutex_trylock,
|
|
8363
|
+
_pthread_mutexattr_destroy,
|
|
8364
|
+
_pthread_mutexattr_init,
|
|
8365
|
+
_pthread_mutexattr_settype,
|
|
8366
|
+
_sched_yield,
|
|
8367
|
+
_sqlite3_auto_extension,
|
|
8368
|
+
_sqlite3_cancel_auto_extension,
|
|
8369
|
+
_pthread_mutex_init,
|
|
8370
|
+
_pthread_mutex_destroy,
|
|
8371
|
+
_pthread_mutex_lock,
|
|
8372
|
+
_pthread_mutex_unlock,
|
|
8243
8373
|
_rewind,
|
|
8244
8374
|
_modf,
|
|
8245
8375
|
_round,
|
|
8376
|
+
_pthread_cond_init,
|
|
8377
|
+
_pthread_cond_destroy,
|
|
8246
8378
|
___extenddftf2,
|
|
8247
8379
|
___letf2,
|
|
8248
8380
|
___floatunditf,
|
|
@@ -8251,6 +8383,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8251
8383
|
___cxa_atexit,
|
|
8252
8384
|
___dl_seterr,
|
|
8253
8385
|
__emscripten_find_dylib,
|
|
8386
|
+
_pthread_cond_timedwait,
|
|
8254
8387
|
_mbstowcs,
|
|
8255
8388
|
_emscripten_builtin_memalign,
|
|
8256
8389
|
__emscripten_timeout,
|
|
@@ -8275,6 +8408,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8275
8408
|
memory,
|
|
8276
8409
|
___stack_pointer,
|
|
8277
8410
|
__indirect_function_table,
|
|
8411
|
+
___c_longjmp,
|
|
8278
8412
|
wasmTable,
|
|
8279
8413
|
wasmMemory;
|
|
8280
8414
|
function assignWasmExports(wasmExports) {
|
|
@@ -8346,6 +8480,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8346
8480
|
_zend_call_known_instance_method_with_2_params = Module[
|
|
8347
8481
|
'_zend_call_known_instance_method_with_2_params'
|
|
8348
8482
|
] = wasmExports['zend_call_known_instance_method_with_2_params'];
|
|
8483
|
+
_zend_lookup_class_ex = Module['_zend_lookup_class_ex'] =
|
|
8484
|
+
wasmExports['zend_lookup_class_ex'];
|
|
8349
8485
|
_destroy_op_array = Module['_destroy_op_array'] =
|
|
8350
8486
|
wasmExports['destroy_op_array'];
|
|
8351
8487
|
_zend_destroy_static_vars = Module['_zend_destroy_static_vars'] =
|
|
@@ -8364,6 +8500,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8364
8500
|
wasmExports['zval_get_double_func'];
|
|
8365
8501
|
_zval_get_string_func = Module['_zval_get_string_func'] =
|
|
8366
8502
|
wasmExports['zval_get_string_func'];
|
|
8503
|
+
_zend_is_true = Module['_zend_is_true'] = wasmExports['zend_is_true'];
|
|
8367
8504
|
_numeric_compare_function = Module['_numeric_compare_function'] =
|
|
8368
8505
|
wasmExports['numeric_compare_function'];
|
|
8369
8506
|
_compare_function = Module['_compare_function'] =
|
|
@@ -8447,6 +8584,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8447
8584
|
] = wasmExports['zend_register_internal_class_ex'];
|
|
8448
8585
|
_zend_class_implements = Module['_zend_class_implements'] =
|
|
8449
8586
|
wasmExports['zend_class_implements'];
|
|
8587
|
+
_zend_register_internal_interface = Module[
|
|
8588
|
+
'_zend_register_internal_interface'
|
|
8589
|
+
] = wasmExports['zend_register_internal_interface'];
|
|
8590
|
+
_zend_is_callable = Module['_zend_is_callable'] =
|
|
8591
|
+
wasmExports['zend_is_callable'];
|
|
8450
8592
|
_zend_fcall_info_init = Module['_zend_fcall_info_init'] =
|
|
8451
8593
|
wasmExports['zend_fcall_info_init'];
|
|
8452
8594
|
_zend_declare_typed_property = Module['_zend_declare_typed_property'] =
|
|
@@ -8457,6 +8599,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8457
8599
|
_zend_try_assign_typed_ref_arr = Module[
|
|
8458
8600
|
'_zend_try_assign_typed_ref_arr'
|
|
8459
8601
|
] = wasmExports['zend_try_assign_typed_ref_arr'];
|
|
8602
|
+
_zend_declare_property = Module['_zend_declare_property'] =
|
|
8603
|
+
wasmExports['zend_declare_property'];
|
|
8460
8604
|
_zend_declare_class_constant_ex = Module[
|
|
8461
8605
|
'_zend_declare_class_constant_ex'
|
|
8462
8606
|
] = wasmExports['zend_declare_class_constant_ex'];
|
|
@@ -8466,6 +8610,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8466
8610
|
wasmExports['zend_replace_error_handling'];
|
|
8467
8611
|
_zend_restore_error_handling = Module['_zend_restore_error_handling'] =
|
|
8468
8612
|
wasmExports['zend_restore_error_handling'];
|
|
8613
|
+
_zend_is_iterable = Module['_zend_is_iterable'] =
|
|
8614
|
+
wasmExports['zend_is_iterable'];
|
|
8469
8615
|
_zend_hash_str_find = Module['_zend_hash_str_find'] =
|
|
8470
8616
|
wasmExports['zend_hash_str_find'];
|
|
8471
8617
|
__zend_hash_init = Module['__zend_hash_init'] =
|
|
@@ -8474,6 +8620,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8474
8620
|
wasmExports['_zend_new_array_0'];
|
|
8475
8621
|
__zend_new_array = Module['__zend_new_array'] =
|
|
8476
8622
|
wasmExports['_zend_new_array'];
|
|
8623
|
+
_zend_array_count = Module['_zend_array_count'] =
|
|
8624
|
+
wasmExports['zend_array_count'];
|
|
8477
8625
|
_zend_hash_update = Module['_zend_hash_update'] =
|
|
8478
8626
|
wasmExports['zend_hash_update'];
|
|
8479
8627
|
_zend_hash_str_update = Module['_zend_hash_str_update'] =
|
|
@@ -8490,6 +8638,17 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8490
8638
|
wasmExports['zend_hash_copy'];
|
|
8491
8639
|
_zend_hash_index_find = Module['_zend_hash_index_find'] =
|
|
8492
8640
|
wasmExports['zend_hash_index_find'];
|
|
8641
|
+
_zend_hash_move_forward_ex = Module['_zend_hash_move_forward_ex'] =
|
|
8642
|
+
wasmExports['zend_hash_move_forward_ex'];
|
|
8643
|
+
_zend_hash_get_current_key_zval_ex = Module[
|
|
8644
|
+
'_zend_hash_get_current_key_zval_ex'
|
|
8645
|
+
] = wasmExports['zend_hash_get_current_key_zval_ex'];
|
|
8646
|
+
_zend_hash_get_current_key_type_ex = Module[
|
|
8647
|
+
'_zend_hash_get_current_key_type_ex'
|
|
8648
|
+
] = wasmExports['zend_hash_get_current_key_type_ex'];
|
|
8649
|
+
_zend_hash_get_current_data_ex = Module[
|
|
8650
|
+
'_zend_hash_get_current_data_ex'
|
|
8651
|
+
] = wasmExports['zend_hash_get_current_data_ex'];
|
|
8493
8652
|
_zend_hash_sort_ex = Module['_zend_hash_sort_ex'] =
|
|
8494
8653
|
wasmExports['zend_hash_sort_ex'];
|
|
8495
8654
|
_zend_execute = Module['_zend_execute'] = wasmExports['zend_execute'];
|
|
@@ -8522,6 +8681,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8522
8681
|
wasmExports['zend_throw_exception'];
|
|
8523
8682
|
_zend_throw_exception_ex = Module['_zend_throw_exception_ex'] =
|
|
8524
8683
|
wasmExports['zend_throw_exception_ex'];
|
|
8684
|
+
_zend_throw_exception_object = Module['_zend_throw_exception_object'] =
|
|
8685
|
+
wasmExports['zend_throw_exception_object'];
|
|
8525
8686
|
_zend_strtod = Module['_zend_strtod'] = wasmExports['zend_strtod'];
|
|
8526
8687
|
_gc_possible_root = Module['_gc_possible_root'] =
|
|
8527
8688
|
wasmExports['gc_possible_root'];
|
|
@@ -8529,14 +8690,27 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8529
8690
|
wasmExports['zend_object_std_init'];
|
|
8530
8691
|
_zend_object_std_dtor = Module['_zend_object_std_dtor'] =
|
|
8531
8692
|
wasmExports['zend_object_std_dtor'];
|
|
8693
|
+
_zend_objects_new = Module['_zend_objects_new'] =
|
|
8694
|
+
wasmExports['zend_objects_new'];
|
|
8532
8695
|
_zend_objects_clone_members = Module['_zend_objects_clone_members'] =
|
|
8533
8696
|
wasmExports['zend_objects_clone_members'];
|
|
8697
|
+
_zend_std_get_properties = Module['_zend_std_get_properties'] =
|
|
8698
|
+
wasmExports['zend_std_get_properties'];
|
|
8699
|
+
_zend_std_read_property = Module['_zend_std_read_property'] =
|
|
8700
|
+
wasmExports['zend_std_read_property'];
|
|
8701
|
+
_zend_std_write_property = Module['_zend_std_write_property'] =
|
|
8702
|
+
wasmExports['zend_std_write_property'];
|
|
8534
8703
|
_zend_std_compare_objects = Module['_zend_std_compare_objects'] =
|
|
8535
8704
|
wasmExports['zend_std_compare_objects'];
|
|
8705
|
+
_zend_std_has_property = Module['_zend_std_has_property'] =
|
|
8706
|
+
wasmExports['zend_std_has_property'];
|
|
8536
8707
|
_zend_objects_store_del = Module['_zend_objects_store_del'] =
|
|
8537
8708
|
wasmExports['zend_objects_store_del'];
|
|
8709
|
+
_zend_do_implement_interface = Module['_zend_do_implement_interface'] =
|
|
8710
|
+
wasmExports['zend_do_implement_interface'];
|
|
8538
8711
|
_smart_str_erealloc = Module['_smart_str_erealloc'] =
|
|
8539
8712
|
wasmExports['smart_str_erealloc'];
|
|
8713
|
+
_strtoll = Module['_strtoll'] = wasmExports['strtoll'];
|
|
8540
8714
|
_strlen = Module['_strlen'] = wasmExports['strlen'];
|
|
8541
8715
|
_munmap = Module['_munmap'] = wasmExports['munmap'];
|
|
8542
8716
|
_abort = Module['_abort'] = wasmExports['abort'];
|
|
@@ -8553,6 +8727,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8553
8727
|
_dlclose = Module['_dlclose'] = wasmExports['dlclose'];
|
|
8554
8728
|
_strcmp = Module['_strcmp'] = wasmExports['strcmp'];
|
|
8555
8729
|
_getenv = Module['_getenv'] = wasmExports['getenv'];
|
|
8730
|
+
___wasm_setjmp = Module['___wasm_setjmp'] =
|
|
8731
|
+
wasmExports['__wasm_setjmp'];
|
|
8732
|
+
___wasm_setjmp_test = Module['___wasm_setjmp_test'] =
|
|
8733
|
+
wasmExports['__wasm_setjmp_test'];
|
|
8734
|
+
___wasm_longjmp = Module['___wasm_longjmp'] =
|
|
8735
|
+
wasmExports['__wasm_longjmp'];
|
|
8556
8736
|
_atoi = Module['_atoi'] = wasmExports['atoi'];
|
|
8557
8737
|
___errno_location = Module['___errno_location'] =
|
|
8558
8738
|
wasmExports['__errno_location'];
|
|
@@ -8560,20 +8740,29 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8560
8740
|
_realloc = Module['_realloc'] = wasmExports['realloc'];
|
|
8561
8741
|
_strcasecmp = Module['_strcasecmp'] = wasmExports['strcasecmp'];
|
|
8562
8742
|
_memchr = Module['_memchr'] = wasmExports['memchr'];
|
|
8743
|
+
_isalnum = Module['_isalnum'] = wasmExports['isalnum'];
|
|
8563
8744
|
_strncmp = Module['_strncmp'] = wasmExports['strncmp'];
|
|
8564
8745
|
_tolower = Module['_tolower'] = wasmExports['tolower'];
|
|
8565
8746
|
_strtok_r = Module['_strtok_r'] = wasmExports['strtok_r'];
|
|
8747
|
+
_unlink = Module['_unlink'] = wasmExports['unlink'];
|
|
8566
8748
|
_fileno = Module['_fileno'] = wasmExports['fileno'];
|
|
8567
8749
|
_fread = Module['_fread'] = wasmExports['fread'];
|
|
8568
8750
|
_fclose = Module['_fclose'] = wasmExports['fclose'];
|
|
8569
8751
|
_strtoul = Module['_strtoul'] = wasmExports['strtoul'];
|
|
8570
8752
|
_strstr = Module['_strstr'] = wasmExports['strstr'];
|
|
8753
|
+
_write = Module['_write'] = wasmExports['write'];
|
|
8571
8754
|
_close = Module['_close'] = wasmExports['close'];
|
|
8755
|
+
_fseek = Module['_fseek'] = wasmExports['fseek'];
|
|
8572
8756
|
_fwrite = Module['_fwrite'] = wasmExports['fwrite'];
|
|
8573
8757
|
_gettimeofday = Module['_gettimeofday'] = wasmExports['gettimeofday'];
|
|
8574
8758
|
_stat = Module['_stat'] = wasmExports['stat'];
|
|
8575
8759
|
_fopen = Module['_fopen'] = wasmExports['fopen'];
|
|
8760
|
+
_getcwd = Module['_getcwd'] = wasmExports['getcwd'];
|
|
8576
8761
|
_open = Module['_open'] = wasmExports['open'];
|
|
8762
|
+
_rename = Module['_rename'] = wasmExports['rename'];
|
|
8763
|
+
_mkdir = Module['_mkdir'] = wasmExports['mkdir'];
|
|
8764
|
+
_rmdir = Module['_rmdir'] = wasmExports['rmdir'];
|
|
8765
|
+
_opendir = Module['_opendir'] = wasmExports['opendir'];
|
|
8577
8766
|
_strncpy = Module['_strncpy'] = wasmExports['strncpy'];
|
|
8578
8767
|
_siprintf = Module['_siprintf'] = wasmExports['siprintf'];
|
|
8579
8768
|
_localtime_r = Module['_localtime_r'] = wasmExports['localtime_r'];
|
|
@@ -8600,6 +8789,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8600
8789
|
_htonl = wasmExports['htonl'];
|
|
8601
8790
|
_strcpy = Module['_strcpy'] = wasmExports['strcpy'];
|
|
8602
8791
|
_strcat = Module['_strcat'] = wasmExports['strcat'];
|
|
8792
|
+
_clock_gettime = Module['_clock_gettime'] =
|
|
8793
|
+
wasmExports['clock_gettime'];
|
|
8603
8794
|
_tzset = Module['_tzset'] = wasmExports['tzset'];
|
|
8604
8795
|
_wasm_sleep = Module['_wasm_sleep'] = wasmExports['wasm_sleep'];
|
|
8605
8796
|
_isdigit = Module['_isdigit'] = wasmExports['isdigit'];
|
|
@@ -8608,12 +8799,19 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8608
8799
|
_qsort = Module['_qsort'] = wasmExports['qsort'];
|
|
8609
8800
|
_mmap = Module['_mmap'] = wasmExports['mmap'];
|
|
8610
8801
|
_calloc = wasmExports['calloc'];
|
|
8802
|
+
_writev = Module['_writev'] = wasmExports['writev'];
|
|
8611
8803
|
_fgets = Module['_fgets'] = wasmExports['fgets'];
|
|
8612
8804
|
_initgroups = Module['_initgroups'] = wasmExports['initgroups'];
|
|
8613
8805
|
_atol = Module['_atol'] = wasmExports['atol'];
|
|
8806
|
+
_closedir = Module['_closedir'] = wasmExports['closedir'];
|
|
8807
|
+
_readdir = Module['_readdir'] = wasmExports['readdir'];
|
|
8808
|
+
_posix_memalign = Module['_posix_memalign'] =
|
|
8809
|
+
wasmExports['posix_memalign'];
|
|
8810
|
+
_ftell = Module['_ftell'] = wasmExports['ftell'];
|
|
8614
8811
|
_wasm_read = Module['_wasm_read'] = wasmExports['wasm_read'];
|
|
8615
8812
|
_feof = Module['_feof'] = wasmExports['feof'];
|
|
8616
8813
|
_strncat = Module['_strncat'] = wasmExports['strncat'];
|
|
8814
|
+
_strerror_r = Module['_strerror_r'] = wasmExports['strerror_r'];
|
|
8617
8815
|
___ctype_get_mb_cur_max = Module['___ctype_get_mb_cur_max'] =
|
|
8618
8816
|
wasmExports['__ctype_get_mb_cur_max'];
|
|
8619
8817
|
___wrap_usleep = Module['___wrap_usleep'] =
|
|
@@ -8664,9 +8862,46 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8664
8862
|
Module['_wasm_free'] =
|
|
8665
8863
|
wasmExports['wasm_free'];
|
|
8666
8864
|
_wasm_trace = Module['_wasm_trace'] = wasmExports['wasm_trace'];
|
|
8865
|
+
_getentropy = Module['_getentropy'] = wasmExports['getentropy'];
|
|
8866
|
+
_pthread_cond_signal = Module['_pthread_cond_signal'] =
|
|
8867
|
+
wasmExports['pthread_cond_signal'];
|
|
8868
|
+
_pthread_cond_wait = Module['_pthread_cond_wait'] =
|
|
8869
|
+
wasmExports['pthread_cond_wait'];
|
|
8870
|
+
_pthread_condattr_destroy = Module['_pthread_condattr_destroy'] =
|
|
8871
|
+
wasmExports['pthread_condattr_destroy'];
|
|
8872
|
+
_pthread_condattr_init = Module['_pthread_condattr_init'] =
|
|
8873
|
+
wasmExports['pthread_condattr_init'];
|
|
8874
|
+
_pthread_condattr_setclock = Module['_pthread_condattr_setclock'] =
|
|
8875
|
+
wasmExports['pthread_condattr_setclock'];
|
|
8876
|
+
_pthread_mutex_trylock = Module['_pthread_mutex_trylock'] =
|
|
8877
|
+
wasmExports['pthread_mutex_trylock'];
|
|
8878
|
+
_pthread_mutexattr_destroy = Module['_pthread_mutexattr_destroy'] =
|
|
8879
|
+
wasmExports['pthread_mutexattr_destroy'];
|
|
8880
|
+
_pthread_mutexattr_init = Module['_pthread_mutexattr_init'] =
|
|
8881
|
+
wasmExports['pthread_mutexattr_init'];
|
|
8882
|
+
_pthread_mutexattr_settype = Module['_pthread_mutexattr_settype'] =
|
|
8883
|
+
wasmExports['pthread_mutexattr_settype'];
|
|
8884
|
+
_sched_yield = Module['_sched_yield'] = wasmExports['sched_yield'];
|
|
8885
|
+
_sqlite3_auto_extension = Module['_sqlite3_auto_extension'] =
|
|
8886
|
+
wasmExports['sqlite3_auto_extension'];
|
|
8887
|
+
_sqlite3_cancel_auto_extension = Module[
|
|
8888
|
+
'_sqlite3_cancel_auto_extension'
|
|
8889
|
+
] = wasmExports['sqlite3_cancel_auto_extension'];
|
|
8890
|
+
_pthread_mutex_init = Module['_pthread_mutex_init'] =
|
|
8891
|
+
wasmExports['pthread_mutex_init'];
|
|
8892
|
+
_pthread_mutex_destroy = Module['_pthread_mutex_destroy'] =
|
|
8893
|
+
wasmExports['pthread_mutex_destroy'];
|
|
8894
|
+
_pthread_mutex_lock = Module['_pthread_mutex_lock'] =
|
|
8895
|
+
wasmExports['pthread_mutex_lock'];
|
|
8896
|
+
_pthread_mutex_unlock = Module['_pthread_mutex_unlock'] =
|
|
8897
|
+
wasmExports['pthread_mutex_unlock'];
|
|
8667
8898
|
_rewind = Module['_rewind'] = wasmExports['rewind'];
|
|
8668
8899
|
_modf = Module['_modf'] = wasmExports['modf'];
|
|
8669
8900
|
_round = Module['_round'] = wasmExports['round'];
|
|
8901
|
+
_pthread_cond_init = Module['_pthread_cond_init'] =
|
|
8902
|
+
wasmExports['pthread_cond_init'];
|
|
8903
|
+
_pthread_cond_destroy = Module['_pthread_cond_destroy'] =
|
|
8904
|
+
wasmExports['pthread_cond_destroy'];
|
|
8670
8905
|
___extenddftf2 = Module['___extenddftf2'] =
|
|
8671
8906
|
wasmExports['__extenddftf2'];
|
|
8672
8907
|
___letf2 = Module['___letf2'] = wasmExports['__letf2'];
|
|
@@ -8677,6 +8912,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8677
8912
|
___cxa_atexit = Module['___cxa_atexit'] = wasmExports['__cxa_atexit'];
|
|
8678
8913
|
___dl_seterr = wasmExports['__dl_seterr'];
|
|
8679
8914
|
__emscripten_find_dylib = wasmExports['_emscripten_find_dylib'];
|
|
8915
|
+
_pthread_cond_timedwait = Module['_pthread_cond_timedwait'] =
|
|
8916
|
+
wasmExports['pthread_cond_timedwait'];
|
|
8680
8917
|
_mbstowcs = Module['_mbstowcs'] = wasmExports['mbstowcs'];
|
|
8681
8918
|
_emscripten_builtin_memalign =
|
|
8682
8919
|
wasmExports['emscripten_builtin_memalign'];
|
|
@@ -8718,63 +8955,64 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8718
8955
|
wasmExports['__stack_pointer'];
|
|
8719
8956
|
__indirect_function_table = wasmTable =
|
|
8720
8957
|
wasmExports['__indirect_function_table'];
|
|
8958
|
+
___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
|
|
8721
8959
|
}
|
|
8722
|
-
var _file_globals = (Module['_file_globals'] =
|
|
8723
|
-
var _sapi_module = (Module['_sapi_module'] =
|
|
8724
|
-
var _sapi_globals = (Module['_sapi_globals'] =
|
|
8725
|
-
var _compiler_globals = (Module['_compiler_globals'] =
|
|
8726
|
-
var _executor_globals = (Module['_executor_globals'] =
|
|
8727
|
-
var _zend_compile_string = (Module['_zend_compile_string'] =
|
|
8728
|
-
var _zend_ce_traversable = (Module['_zend_ce_traversable'] =
|
|
8729
|
-
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] =
|
|
8730
|
-
var _zend_ce_iterator = (Module['_zend_ce_iterator'] =
|
|
8731
|
-
var _zend_ce_serializable = (Module['_zend_ce_serializable'] =
|
|
8732
|
-
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] =
|
|
8733
|
-
var _zend_ce_countable = (Module['_zend_ce_countable'] =
|
|
8734
|
-
var _zend_ce_stringable = (Module['_zend_ce_stringable'] =
|
|
8735
|
-
var _zend_ce_exception = (Module['_zend_ce_exception'] =
|
|
8736
|
-
var _zend_ce_throwable = (Module['_zend_ce_throwable'] =
|
|
8960
|
+
var _file_globals = (Module['_file_globals'] = 12856696);
|
|
8961
|
+
var _sapi_module = (Module['_sapi_module'] = 12801864);
|
|
8962
|
+
var _sapi_globals = (Module['_sapi_globals'] = 12802008);
|
|
8963
|
+
var _compiler_globals = (Module['_compiler_globals'] = 12859536);
|
|
8964
|
+
var _executor_globals = (Module['_executor_globals'] = 12859920);
|
|
8965
|
+
var _zend_compile_string = (Module['_zend_compile_string'] = 12861132);
|
|
8966
|
+
var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 12715876);
|
|
8967
|
+
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 12715880);
|
|
8968
|
+
var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 12715884);
|
|
8969
|
+
var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 12715888);
|
|
8970
|
+
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 12715892);
|
|
8971
|
+
var _zend_ce_countable = (Module['_zend_ce_countable'] = 12715896);
|
|
8972
|
+
var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 12715900);
|
|
8973
|
+
var _zend_ce_exception = (Module['_zend_ce_exception'] = 12857304);
|
|
8974
|
+
var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 12857288);
|
|
8737
8975
|
var _zend_ce_division_by_zero_error = (Module[
|
|
8738
8976
|
'_zend_ce_division_by_zero_error'
|
|
8739
|
-
] =
|
|
8977
|
+
] = 12857432);
|
|
8740
8978
|
var _zend_ce_unhandled_match_error = (Module[
|
|
8741
8979
|
'_zend_ce_unhandled_match_error'
|
|
8742
|
-
] =
|
|
8743
|
-
var _zend_empty_string = (Module['_zend_empty_string'] =
|
|
8980
|
+
] = 12857436);
|
|
8981
|
+
var _zend_empty_string = (Module['_zend_empty_string'] = 12714352);
|
|
8744
8982
|
var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
|
|
8745
|
-
|
|
8746
|
-
var _zend_one_char_string = (Module['_zend_one_char_string'] =
|
|
8983
|
+
12714420);
|
|
8984
|
+
var _zend_one_char_string = (Module['_zend_one_char_string'] = 12714432);
|
|
8747
8985
|
var _std_object_handlers = (Module['_std_object_handlers'] = 11816800);
|
|
8748
|
-
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] =
|
|
8749
|
-
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] =
|
|
8986
|
+
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 12716104);
|
|
8987
|
+
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 12716108);
|
|
8750
8988
|
var ___memory_base = (Module['___memory_base'] = 0);
|
|
8751
8989
|
var ___table_base = (Module['___table_base'] = 1);
|
|
8752
|
-
var _stdout = (Module['_stdout'] =
|
|
8990
|
+
var _stdout = (Module['_stdout'] = 12707536);
|
|
8753
8991
|
var __playground_zend_side_module_data_exports = (Module[
|
|
8754
8992
|
'__playground_zend_side_module_data_exports'
|
|
8755
8993
|
] = 12213936);
|
|
8756
8994
|
var __playground_zend_side_module_function_exports = (Module[
|
|
8757
8995
|
'__playground_zend_side_module_function_exports'
|
|
8758
8996
|
] = 12214032);
|
|
8759
|
-
var _timezone = (Module['_timezone'] =
|
|
8760
|
-
var _tzname = (Module['_tzname'] =
|
|
8761
|
-
var ___heap_base =
|
|
8997
|
+
var _timezone = (Module['_timezone'] = 13196416);
|
|
8998
|
+
var _tzname = (Module['_tzname'] = 13196424);
|
|
8999
|
+
var ___heap_base = 14258688;
|
|
8762
9000
|
var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
|
|
8763
|
-
|
|
9001
|
+
13210092);
|
|
8764
9002
|
var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
|
|
8765
9003
|
'__ZTVN10__cxxabiv120__si_class_type_infoE'
|
|
8766
|
-
] =
|
|
9004
|
+
] = 12707824);
|
|
8767
9005
|
var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
|
|
8768
9006
|
'__ZTVN10__cxxabiv117__class_type_infoE'
|
|
8769
|
-
] =
|
|
9007
|
+
] = 12707784);
|
|
8770
9008
|
var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
|
|
8771
9009
|
'__ZTVN10__cxxabiv121__vmi_class_type_infoE'
|
|
8772
|
-
] =
|
|
9010
|
+
] = 12707876);
|
|
8773
9011
|
var __ZTISt20bad_array_new_length = (Module[
|
|
8774
9012
|
'__ZTISt20bad_array_new_length'
|
|
8775
|
-
] =
|
|
8776
|
-
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] =
|
|
8777
|
-
var __ZTISt12length_error = (Module['__ZTISt12length_error'] =
|
|
9013
|
+
] = 12707996);
|
|
9014
|
+
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 12708072);
|
|
9015
|
+
var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 12708092);
|
|
8778
9016
|
var wasmImports = {
|
|
8779
9017
|
__assert_fail: ___assert_fail,
|
|
8780
9018
|
__asyncjs__js_module_onMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-2",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.35",
|
|
4
4
|
"description": "PHP 8.2 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": {
|