@php-wasm/web-8-1 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_1.js +104 -32
- package/jspi/8_1_34/php_8_1.wasm +0 -0
- package/jspi/php_8_1.js +298 -66
- package/package.json +3 -3
package/asyncify/php_8_1.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);
|
|
@@ -7663,21 +7721,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7663
7721
|
const SO_SNDTIMEO = 67;
|
|
7664
7722
|
const IPPROTO_TCP = 6;
|
|
7665
7723
|
const TCP_NODELAY = 1;
|
|
7724
|
+
if (
|
|
7725
|
+
level === SOL_SOCKET &&
|
|
7726
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7727
|
+
) {
|
|
7728
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7729
|
+
optionValuePtr,
|
|
7730
|
+
optionLen
|
|
7731
|
+
);
|
|
7732
|
+
if (timeoutMs === null) {
|
|
7733
|
+
return -1;
|
|
7734
|
+
}
|
|
7735
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7736
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7737
|
+
timeouts.receive = timeoutMs;
|
|
7738
|
+
} else {
|
|
7739
|
+
timeouts.send = timeoutMs;
|
|
7740
|
+
}
|
|
7741
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7742
|
+
return 0;
|
|
7743
|
+
}
|
|
7666
7744
|
const isForwardable =
|
|
7667
7745
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7668
7746
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7669
|
-
|
|
7670
|
-
level === SOL_SOCKET &&
|
|
7671
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7672
|
-
if (!isForwardable && !isIgnorable) {
|
|
7747
|
+
if (!isForwardable) {
|
|
7673
7748
|
console.warn(
|
|
7674
7749
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7675
7750
|
);
|
|
7676
7751
|
return -1;
|
|
7677
7752
|
}
|
|
7678
|
-
if (isIgnorable) {
|
|
7679
|
-
return 0;
|
|
7680
|
-
}
|
|
7681
7753
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7682
7754
|
if (!ws) {
|
|
7683
7755
|
return -1;
|
package/jspi/8_1_34/php_8_1.wasm
CHANGED
|
Binary file
|
package/jspi/php_8_1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dependencyFilename from './8_1_34/php_8_1.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
3
|
+
export const dependenciesTotalSize = 20224377;
|
|
4
4
|
const phpVersionString = '8.1.34';
|
|
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
|
|
@@ -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);
|
|
@@ -7533,21 +7594,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7533
7594
|
const SO_SNDTIMEO = 67;
|
|
7534
7595
|
const IPPROTO_TCP = 6;
|
|
7535
7596
|
const TCP_NODELAY = 1;
|
|
7597
|
+
if (
|
|
7598
|
+
level === SOL_SOCKET &&
|
|
7599
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7600
|
+
) {
|
|
7601
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7602
|
+
optionValuePtr,
|
|
7603
|
+
optionLen
|
|
7604
|
+
);
|
|
7605
|
+
if (timeoutMs === null) {
|
|
7606
|
+
return -1;
|
|
7607
|
+
}
|
|
7608
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7609
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7610
|
+
timeouts.receive = timeoutMs;
|
|
7611
|
+
} else {
|
|
7612
|
+
timeouts.send = timeoutMs;
|
|
7613
|
+
}
|
|
7614
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7615
|
+
return 0;
|
|
7616
|
+
}
|
|
7536
7617
|
const isForwardable =
|
|
7537
7618
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7538
7619
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7539
|
-
|
|
7540
|
-
level === SOL_SOCKET &&
|
|
7541
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7542
|
-
if (!isForwardable && !isIgnorable) {
|
|
7620
|
+
if (!isForwardable) {
|
|
7543
7621
|
console.warn(
|
|
7544
7622
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7545
7623
|
);
|
|
7546
7624
|
return -1;
|
|
7547
7625
|
}
|
|
7548
|
-
if (isIgnorable) {
|
|
7549
|
-
return 0;
|
|
7550
|
-
}
|
|
7551
7626
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7552
7627
|
if (!ws) {
|
|
7553
7628
|
return -1;
|
|
@@ -8051,6 +8126,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8051
8126
|
_zend_call_function,
|
|
8052
8127
|
_zend_call_known_function,
|
|
8053
8128
|
_zend_call_known_instance_method_with_2_params,
|
|
8129
|
+
_zend_lookup_class_ex,
|
|
8054
8130
|
_destroy_op_array,
|
|
8055
8131
|
_zend_destroy_static_vars,
|
|
8056
8132
|
__is_numeric_string_ex,
|
|
@@ -8060,6 +8136,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8060
8136
|
__try_convert_to_string,
|
|
8061
8137
|
_zval_get_double_func,
|
|
8062
8138
|
_zval_get_string_func,
|
|
8139
|
+
_zend_is_true,
|
|
8063
8140
|
_numeric_compare_function,
|
|
8064
8141
|
_compare_function,
|
|
8065
8142
|
_instanceof_function_slow,
|
|
@@ -8099,10 +8176,13 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8099
8176
|
_add_next_index_stringl,
|
|
8100
8177
|
_zend_register_internal_class_ex,
|
|
8101
8178
|
_zend_class_implements,
|
|
8179
|
+
_zend_register_internal_interface,
|
|
8180
|
+
_zend_is_callable,
|
|
8102
8181
|
_zend_fcall_info_init,
|
|
8103
8182
|
_zend_declare_typed_property,
|
|
8104
8183
|
_zend_try_assign_typed_ref_long,
|
|
8105
8184
|
_zend_try_assign_typed_ref_arr,
|
|
8185
|
+
_zend_declare_property,
|
|
8106
8186
|
_zend_declare_class_constant_null,
|
|
8107
8187
|
_zend_declare_class_constant_long,
|
|
8108
8188
|
_zend_declare_class_constant_double,
|
|
@@ -8110,10 +8190,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8110
8190
|
_zend_update_property,
|
|
8111
8191
|
_zend_replace_error_handling,
|
|
8112
8192
|
_zend_restore_error_handling,
|
|
8193
|
+
_zend_is_iterable,
|
|
8113
8194
|
_zend_hash_str_find,
|
|
8114
8195
|
__zend_hash_init,
|
|
8115
8196
|
__zend_new_array_0,
|
|
8116
8197
|
__zend_new_array,
|
|
8198
|
+
_zend_array_count,
|
|
8117
8199
|
_zend_hash_update,
|
|
8118
8200
|
_zend_hash_str_update,
|
|
8119
8201
|
_zend_hash_next_index_insert,
|
|
@@ -8122,6 +8204,10 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8122
8204
|
_zend_array_destroy,
|
|
8123
8205
|
_zend_hash_copy,
|
|
8124
8206
|
_zend_hash_index_find,
|
|
8207
|
+
_zend_hash_move_forward_ex,
|
|
8208
|
+
_zend_hash_get_current_key_zval_ex,
|
|
8209
|
+
_zend_hash_get_current_key_type_ex,
|
|
8210
|
+
_zend_hash_get_current_data_ex,
|
|
8125
8211
|
_zend_hash_sort_ex,
|
|
8126
8212
|
_zend_execute,
|
|
8127
8213
|
_zend_register_ini_entries,
|
|
@@ -8138,17 +8224,23 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8138
8224
|
_zend_create_internal_iterator_zval,
|
|
8139
8225
|
_zend_throw_exception,
|
|
8140
8226
|
_zend_throw_exception_ex,
|
|
8227
|
+
_zend_throw_exception_object,
|
|
8141
8228
|
_zend_strtod,
|
|
8142
8229
|
_gc_possible_root,
|
|
8143
8230
|
_zend_object_std_init,
|
|
8144
8231
|
_zend_object_std_dtor,
|
|
8232
|
+
_zend_objects_new,
|
|
8145
8233
|
_zend_objects_clone_members,
|
|
8234
|
+
_zend_std_get_properties,
|
|
8146
8235
|
_zend_std_read_property,
|
|
8147
8236
|
_zend_std_write_property,
|
|
8148
8237
|
_zend_std_get_property_ptr_ptr,
|
|
8149
8238
|
_zend_std_compare_objects,
|
|
8239
|
+
_zend_std_has_property,
|
|
8150
8240
|
_zend_objects_store_del,
|
|
8241
|
+
_zend_do_implement_interface,
|
|
8151
8242
|
_smart_str_erealloc,
|
|
8243
|
+
_strtoll,
|
|
8152
8244
|
_strlen,
|
|
8153
8245
|
_munmap,
|
|
8154
8246
|
_free,
|
|
@@ -8161,29 +8253,43 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8161
8253
|
_dlclose,
|
|
8162
8254
|
_strcmp,
|
|
8163
8255
|
_getenv,
|
|
8256
|
+
___wasm_setjmp,
|
|
8257
|
+
___wasm_setjmp_test,
|
|
8258
|
+
___wasm_longjmp,
|
|
8164
8259
|
_atoi,
|
|
8165
8260
|
_strrchr,
|
|
8166
8261
|
_realloc,
|
|
8167
8262
|
___errno_location,
|
|
8168
8263
|
_memchr,
|
|
8264
|
+
_isalnum,
|
|
8169
8265
|
_strncmp,
|
|
8170
8266
|
_tolower,
|
|
8171
8267
|
_strtok_r,
|
|
8268
|
+
_unlink,
|
|
8172
8269
|
_fileno,
|
|
8173
8270
|
_fread,
|
|
8174
8271
|
_fclose,
|
|
8175
8272
|
_strtoul,
|
|
8176
8273
|
_strstr,
|
|
8274
|
+
_getcwd,
|
|
8177
8275
|
_stat,
|
|
8178
8276
|
_fopen,
|
|
8179
8277
|
_open,
|
|
8278
|
+
_rename,
|
|
8279
|
+
_mkdir,
|
|
8280
|
+
_rmdir,
|
|
8281
|
+
_opendir,
|
|
8180
8282
|
_strncpy,
|
|
8181
8283
|
_close,
|
|
8284
|
+
_ftell,
|
|
8285
|
+
_write,
|
|
8286
|
+
_fseek,
|
|
8182
8287
|
_fwrite,
|
|
8183
8288
|
_wasm_read,
|
|
8184
8289
|
_feof,
|
|
8185
8290
|
_fflush,
|
|
8186
8291
|
_mmap,
|
|
8292
|
+
_closedir,
|
|
8187
8293
|
_gettimeofday,
|
|
8188
8294
|
_strtol,
|
|
8189
8295
|
_pow,
|
|
@@ -8208,17 +8314,22 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8208
8314
|
_htonl,
|
|
8209
8315
|
_strcpy,
|
|
8210
8316
|
_strcat,
|
|
8317
|
+
_clock_gettime,
|
|
8211
8318
|
_tzset,
|
|
8212
8319
|
_wasm_sleep,
|
|
8320
|
+
_readdir,
|
|
8213
8321
|
_isdigit,
|
|
8214
8322
|
_expf,
|
|
8215
8323
|
_qsort,
|
|
8216
8324
|
_abort,
|
|
8217
8325
|
_calloc,
|
|
8326
|
+
_writev,
|
|
8218
8327
|
_fgets,
|
|
8219
8328
|
_initgroups,
|
|
8220
8329
|
_atol,
|
|
8330
|
+
_posix_memalign,
|
|
8221
8331
|
_strncat,
|
|
8332
|
+
_strerror_r,
|
|
8222
8333
|
___ctype_get_mb_cur_max,
|
|
8223
8334
|
___wrap_usleep,
|
|
8224
8335
|
___wrap_select,
|
|
@@ -8244,9 +8355,28 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8244
8355
|
_php_wasm_init,
|
|
8245
8356
|
_wasm_free,
|
|
8246
8357
|
_wasm_trace,
|
|
8358
|
+
_getentropy,
|
|
8359
|
+
_pthread_cond_signal,
|
|
8360
|
+
_pthread_cond_wait,
|
|
8361
|
+
_pthread_condattr_destroy,
|
|
8362
|
+
_pthread_condattr_init,
|
|
8363
|
+
_pthread_condattr_setclock,
|
|
8364
|
+
_pthread_mutex_trylock,
|
|
8365
|
+
_pthread_mutexattr_destroy,
|
|
8366
|
+
_pthread_mutexattr_init,
|
|
8367
|
+
_pthread_mutexattr_settype,
|
|
8368
|
+
_sched_yield,
|
|
8369
|
+
_sqlite3_auto_extension,
|
|
8370
|
+
_sqlite3_cancel_auto_extension,
|
|
8371
|
+
_pthread_mutex_init,
|
|
8372
|
+
_pthread_mutex_destroy,
|
|
8373
|
+
_pthread_mutex_lock,
|
|
8374
|
+
_pthread_mutex_unlock,
|
|
8247
8375
|
_rewind,
|
|
8248
8376
|
_modf,
|
|
8249
8377
|
_round,
|
|
8378
|
+
_pthread_cond_init,
|
|
8379
|
+
_pthread_cond_destroy,
|
|
8250
8380
|
___extenddftf2,
|
|
8251
8381
|
___letf2,
|
|
8252
8382
|
___floatunditf,
|
|
@@ -8255,6 +8385,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8255
8385
|
___cxa_atexit,
|
|
8256
8386
|
___dl_seterr,
|
|
8257
8387
|
__emscripten_find_dylib,
|
|
8388
|
+
_pthread_cond_timedwait,
|
|
8258
8389
|
_mbstowcs,
|
|
8259
8390
|
_emscripten_builtin_memalign,
|
|
8260
8391
|
__emscripten_timeout,
|
|
@@ -8279,6 +8410,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8279
8410
|
memory,
|
|
8280
8411
|
___stack_pointer,
|
|
8281
8412
|
__indirect_function_table,
|
|
8413
|
+
___c_longjmp,
|
|
8282
8414
|
wasmTable,
|
|
8283
8415
|
wasmMemory;
|
|
8284
8416
|
function assignWasmExports(wasmExports) {
|
|
@@ -8350,6 +8482,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8350
8482
|
_zend_call_known_instance_method_with_2_params = Module[
|
|
8351
8483
|
'_zend_call_known_instance_method_with_2_params'
|
|
8352
8484
|
] = wasmExports['zend_call_known_instance_method_with_2_params'];
|
|
8485
|
+
_zend_lookup_class_ex = Module['_zend_lookup_class_ex'] =
|
|
8486
|
+
wasmExports['zend_lookup_class_ex'];
|
|
8353
8487
|
_destroy_op_array = Module['_destroy_op_array'] =
|
|
8354
8488
|
wasmExports['destroy_op_array'];
|
|
8355
8489
|
_zend_destroy_static_vars = Module['_zend_destroy_static_vars'] =
|
|
@@ -8368,6 +8502,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8368
8502
|
wasmExports['zval_get_double_func'];
|
|
8369
8503
|
_zval_get_string_func = Module['_zval_get_string_func'] =
|
|
8370
8504
|
wasmExports['zval_get_string_func'];
|
|
8505
|
+
_zend_is_true = Module['_zend_is_true'] = wasmExports['zend_is_true'];
|
|
8371
8506
|
_numeric_compare_function = Module['_numeric_compare_function'] =
|
|
8372
8507
|
wasmExports['numeric_compare_function'];
|
|
8373
8508
|
_compare_function = Module['_compare_function'] =
|
|
@@ -8451,6 +8586,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8451
8586
|
] = wasmExports['zend_register_internal_class_ex'];
|
|
8452
8587
|
_zend_class_implements = Module['_zend_class_implements'] =
|
|
8453
8588
|
wasmExports['zend_class_implements'];
|
|
8589
|
+
_zend_register_internal_interface = Module[
|
|
8590
|
+
'_zend_register_internal_interface'
|
|
8591
|
+
] = wasmExports['zend_register_internal_interface'];
|
|
8592
|
+
_zend_is_callable = Module['_zend_is_callable'] =
|
|
8593
|
+
wasmExports['zend_is_callable'];
|
|
8454
8594
|
_zend_fcall_info_init = Module['_zend_fcall_info_init'] =
|
|
8455
8595
|
wasmExports['zend_fcall_info_init'];
|
|
8456
8596
|
_zend_declare_typed_property = Module['_zend_declare_typed_property'] =
|
|
@@ -8461,6 +8601,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8461
8601
|
_zend_try_assign_typed_ref_arr = Module[
|
|
8462
8602
|
'_zend_try_assign_typed_ref_arr'
|
|
8463
8603
|
] = wasmExports['zend_try_assign_typed_ref_arr'];
|
|
8604
|
+
_zend_declare_property = Module['_zend_declare_property'] =
|
|
8605
|
+
wasmExports['zend_declare_property'];
|
|
8464
8606
|
_zend_declare_class_constant_null = Module[
|
|
8465
8607
|
'_zend_declare_class_constant_null'
|
|
8466
8608
|
] = wasmExports['zend_declare_class_constant_null'];
|
|
@@ -8479,6 +8621,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8479
8621
|
wasmExports['zend_replace_error_handling'];
|
|
8480
8622
|
_zend_restore_error_handling = Module['_zend_restore_error_handling'] =
|
|
8481
8623
|
wasmExports['zend_restore_error_handling'];
|
|
8624
|
+
_zend_is_iterable = Module['_zend_is_iterable'] =
|
|
8625
|
+
wasmExports['zend_is_iterable'];
|
|
8482
8626
|
_zend_hash_str_find = Module['_zend_hash_str_find'] =
|
|
8483
8627
|
wasmExports['zend_hash_str_find'];
|
|
8484
8628
|
__zend_hash_init = Module['__zend_hash_init'] =
|
|
@@ -8487,6 +8631,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8487
8631
|
wasmExports['_zend_new_array_0'];
|
|
8488
8632
|
__zend_new_array = Module['__zend_new_array'] =
|
|
8489
8633
|
wasmExports['_zend_new_array'];
|
|
8634
|
+
_zend_array_count = Module['_zend_array_count'] =
|
|
8635
|
+
wasmExports['zend_array_count'];
|
|
8490
8636
|
_zend_hash_update = Module['_zend_hash_update'] =
|
|
8491
8637
|
wasmExports['zend_hash_update'];
|
|
8492
8638
|
_zend_hash_str_update = Module['_zend_hash_str_update'] =
|
|
@@ -8503,6 +8649,17 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8503
8649
|
wasmExports['zend_hash_copy'];
|
|
8504
8650
|
_zend_hash_index_find = Module['_zend_hash_index_find'] =
|
|
8505
8651
|
wasmExports['zend_hash_index_find'];
|
|
8652
|
+
_zend_hash_move_forward_ex = Module['_zend_hash_move_forward_ex'] =
|
|
8653
|
+
wasmExports['zend_hash_move_forward_ex'];
|
|
8654
|
+
_zend_hash_get_current_key_zval_ex = Module[
|
|
8655
|
+
'_zend_hash_get_current_key_zval_ex'
|
|
8656
|
+
] = wasmExports['zend_hash_get_current_key_zval_ex'];
|
|
8657
|
+
_zend_hash_get_current_key_type_ex = Module[
|
|
8658
|
+
'_zend_hash_get_current_key_type_ex'
|
|
8659
|
+
] = wasmExports['zend_hash_get_current_key_type_ex'];
|
|
8660
|
+
_zend_hash_get_current_data_ex = Module[
|
|
8661
|
+
'_zend_hash_get_current_data_ex'
|
|
8662
|
+
] = wasmExports['zend_hash_get_current_data_ex'];
|
|
8506
8663
|
_zend_hash_sort_ex = Module['_zend_hash_sort_ex'] =
|
|
8507
8664
|
wasmExports['zend_hash_sort_ex'];
|
|
8508
8665
|
_zend_execute = Module['_zend_execute'] = wasmExports['zend_execute'];
|
|
@@ -8533,6 +8690,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8533
8690
|
wasmExports['zend_throw_exception'];
|
|
8534
8691
|
_zend_throw_exception_ex = Module['_zend_throw_exception_ex'] =
|
|
8535
8692
|
wasmExports['zend_throw_exception_ex'];
|
|
8693
|
+
_zend_throw_exception_object = Module['_zend_throw_exception_object'] =
|
|
8694
|
+
wasmExports['zend_throw_exception_object'];
|
|
8536
8695
|
_zend_strtod = Module['_zend_strtod'] = wasmExports['zend_strtod'];
|
|
8537
8696
|
_gc_possible_root = Module['_gc_possible_root'] =
|
|
8538
8697
|
wasmExports['gc_possible_root'];
|
|
@@ -8540,8 +8699,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8540
8699
|
wasmExports['zend_object_std_init'];
|
|
8541
8700
|
_zend_object_std_dtor = Module['_zend_object_std_dtor'] =
|
|
8542
8701
|
wasmExports['zend_object_std_dtor'];
|
|
8702
|
+
_zend_objects_new = Module['_zend_objects_new'] =
|
|
8703
|
+
wasmExports['zend_objects_new'];
|
|
8543
8704
|
_zend_objects_clone_members = Module['_zend_objects_clone_members'] =
|
|
8544
8705
|
wasmExports['zend_objects_clone_members'];
|
|
8706
|
+
_zend_std_get_properties = Module['_zend_std_get_properties'] =
|
|
8707
|
+
wasmExports['zend_std_get_properties'];
|
|
8545
8708
|
_zend_std_read_property = Module['_zend_std_read_property'] =
|
|
8546
8709
|
wasmExports['zend_std_read_property'];
|
|
8547
8710
|
_zend_std_write_property = Module['_zend_std_write_property'] =
|
|
@@ -8551,10 +8714,15 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8551
8714
|
] = wasmExports['zend_std_get_property_ptr_ptr'];
|
|
8552
8715
|
_zend_std_compare_objects = Module['_zend_std_compare_objects'] =
|
|
8553
8716
|
wasmExports['zend_std_compare_objects'];
|
|
8717
|
+
_zend_std_has_property = Module['_zend_std_has_property'] =
|
|
8718
|
+
wasmExports['zend_std_has_property'];
|
|
8554
8719
|
_zend_objects_store_del = Module['_zend_objects_store_del'] =
|
|
8555
8720
|
wasmExports['zend_objects_store_del'];
|
|
8721
|
+
_zend_do_implement_interface = Module['_zend_do_implement_interface'] =
|
|
8722
|
+
wasmExports['zend_do_implement_interface'];
|
|
8556
8723
|
_smart_str_erealloc = Module['_smart_str_erealloc'] =
|
|
8557
8724
|
wasmExports['smart_str_erealloc'];
|
|
8725
|
+
_strtoll = Module['_strtoll'] = wasmExports['strtoll'];
|
|
8558
8726
|
_strlen = Module['_strlen'] = wasmExports['strlen'];
|
|
8559
8727
|
_munmap = Module['_munmap'] = wasmExports['munmap'];
|
|
8560
8728
|
_free = Module['_free'] = wasmExports['free'];
|
|
@@ -8570,30 +8738,47 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8570
8738
|
_dlclose = Module['_dlclose'] = wasmExports['dlclose'];
|
|
8571
8739
|
_strcmp = Module['_strcmp'] = wasmExports['strcmp'];
|
|
8572
8740
|
_getenv = Module['_getenv'] = wasmExports['getenv'];
|
|
8741
|
+
___wasm_setjmp = Module['___wasm_setjmp'] =
|
|
8742
|
+
wasmExports['__wasm_setjmp'];
|
|
8743
|
+
___wasm_setjmp_test = Module['___wasm_setjmp_test'] =
|
|
8744
|
+
wasmExports['__wasm_setjmp_test'];
|
|
8745
|
+
___wasm_longjmp = Module['___wasm_longjmp'] =
|
|
8746
|
+
wasmExports['__wasm_longjmp'];
|
|
8573
8747
|
_atoi = Module['_atoi'] = wasmExports['atoi'];
|
|
8574
8748
|
_strrchr = Module['_strrchr'] = wasmExports['strrchr'];
|
|
8575
8749
|
_realloc = Module['_realloc'] = wasmExports['realloc'];
|
|
8576
8750
|
___errno_location = Module['___errno_location'] =
|
|
8577
8751
|
wasmExports['__errno_location'];
|
|
8578
8752
|
_memchr = Module['_memchr'] = wasmExports['memchr'];
|
|
8753
|
+
_isalnum = Module['_isalnum'] = wasmExports['isalnum'];
|
|
8579
8754
|
_strncmp = Module['_strncmp'] = wasmExports['strncmp'];
|
|
8580
8755
|
_tolower = Module['_tolower'] = wasmExports['tolower'];
|
|
8581
8756
|
_strtok_r = Module['_strtok_r'] = wasmExports['strtok_r'];
|
|
8757
|
+
_unlink = Module['_unlink'] = wasmExports['unlink'];
|
|
8582
8758
|
_fileno = Module['_fileno'] = wasmExports['fileno'];
|
|
8583
8759
|
_fread = Module['_fread'] = wasmExports['fread'];
|
|
8584
8760
|
_fclose = Module['_fclose'] = wasmExports['fclose'];
|
|
8585
8761
|
_strtoul = Module['_strtoul'] = wasmExports['strtoul'];
|
|
8586
8762
|
_strstr = Module['_strstr'] = wasmExports['strstr'];
|
|
8763
|
+
_getcwd = Module['_getcwd'] = wasmExports['getcwd'];
|
|
8587
8764
|
_stat = Module['_stat'] = wasmExports['stat'];
|
|
8588
8765
|
_fopen = Module['_fopen'] = wasmExports['fopen'];
|
|
8589
8766
|
_open = Module['_open'] = wasmExports['open'];
|
|
8767
|
+
_rename = Module['_rename'] = wasmExports['rename'];
|
|
8768
|
+
_mkdir = Module['_mkdir'] = wasmExports['mkdir'];
|
|
8769
|
+
_rmdir = Module['_rmdir'] = wasmExports['rmdir'];
|
|
8770
|
+
_opendir = Module['_opendir'] = wasmExports['opendir'];
|
|
8590
8771
|
_strncpy = Module['_strncpy'] = wasmExports['strncpy'];
|
|
8591
8772
|
_close = Module['_close'] = wasmExports['close'];
|
|
8773
|
+
_ftell = Module['_ftell'] = wasmExports['ftell'];
|
|
8774
|
+
_write = Module['_write'] = wasmExports['write'];
|
|
8775
|
+
_fseek = Module['_fseek'] = wasmExports['fseek'];
|
|
8592
8776
|
_fwrite = Module['_fwrite'] = wasmExports['fwrite'];
|
|
8593
8777
|
_wasm_read = Module['_wasm_read'] = wasmExports['wasm_read'];
|
|
8594
8778
|
_feof = Module['_feof'] = wasmExports['feof'];
|
|
8595
8779
|
_fflush = Module['_fflush'] = wasmExports['fflush'];
|
|
8596
8780
|
_mmap = Module['_mmap'] = wasmExports['mmap'];
|
|
8781
|
+
_closedir = Module['_closedir'] = wasmExports['closedir'];
|
|
8597
8782
|
_gettimeofday = Module['_gettimeofday'] = wasmExports['gettimeofday'];
|
|
8598
8783
|
_strtol = Module['_strtol'] = wasmExports['strtol'];
|
|
8599
8784
|
_pow = Module['_pow'] = wasmExports['pow'];
|
|
@@ -8620,17 +8805,24 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8620
8805
|
_htonl = wasmExports['htonl'];
|
|
8621
8806
|
_strcpy = Module['_strcpy'] = wasmExports['strcpy'];
|
|
8622
8807
|
_strcat = Module['_strcat'] = wasmExports['strcat'];
|
|
8808
|
+
_clock_gettime = Module['_clock_gettime'] =
|
|
8809
|
+
wasmExports['clock_gettime'];
|
|
8623
8810
|
_tzset = Module['_tzset'] = wasmExports['tzset'];
|
|
8624
8811
|
_wasm_sleep = Module['_wasm_sleep'] = wasmExports['wasm_sleep'];
|
|
8812
|
+
_readdir = Module['_readdir'] = wasmExports['readdir'];
|
|
8625
8813
|
_isdigit = Module['_isdigit'] = wasmExports['isdigit'];
|
|
8626
8814
|
_expf = Module['_expf'] = wasmExports['expf'];
|
|
8627
8815
|
_qsort = Module['_qsort'] = wasmExports['qsort'];
|
|
8628
8816
|
_abort = Module['_abort'] = wasmExports['abort'];
|
|
8629
8817
|
_calloc = wasmExports['calloc'];
|
|
8818
|
+
_writev = Module['_writev'] = wasmExports['writev'];
|
|
8630
8819
|
_fgets = Module['_fgets'] = wasmExports['fgets'];
|
|
8631
8820
|
_initgroups = Module['_initgroups'] = wasmExports['initgroups'];
|
|
8632
8821
|
_atol = Module['_atol'] = wasmExports['atol'];
|
|
8822
|
+
_posix_memalign = Module['_posix_memalign'] =
|
|
8823
|
+
wasmExports['posix_memalign'];
|
|
8633
8824
|
_strncat = Module['_strncat'] = wasmExports['strncat'];
|
|
8825
|
+
_strerror_r = Module['_strerror_r'] = wasmExports['strerror_r'];
|
|
8634
8826
|
___ctype_get_mb_cur_max = Module['___ctype_get_mb_cur_max'] =
|
|
8635
8827
|
wasmExports['__ctype_get_mb_cur_max'];
|
|
8636
8828
|
___wrap_usleep = Module['___wrap_usleep'] =
|
|
@@ -8681,9 +8873,46 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8681
8873
|
Module['_wasm_free'] =
|
|
8682
8874
|
wasmExports['wasm_free'];
|
|
8683
8875
|
_wasm_trace = Module['_wasm_trace'] = wasmExports['wasm_trace'];
|
|
8876
|
+
_getentropy = Module['_getentropy'] = wasmExports['getentropy'];
|
|
8877
|
+
_pthread_cond_signal = Module['_pthread_cond_signal'] =
|
|
8878
|
+
wasmExports['pthread_cond_signal'];
|
|
8879
|
+
_pthread_cond_wait = Module['_pthread_cond_wait'] =
|
|
8880
|
+
wasmExports['pthread_cond_wait'];
|
|
8881
|
+
_pthread_condattr_destroy = Module['_pthread_condattr_destroy'] =
|
|
8882
|
+
wasmExports['pthread_condattr_destroy'];
|
|
8883
|
+
_pthread_condattr_init = Module['_pthread_condattr_init'] =
|
|
8884
|
+
wasmExports['pthread_condattr_init'];
|
|
8885
|
+
_pthread_condattr_setclock = Module['_pthread_condattr_setclock'] =
|
|
8886
|
+
wasmExports['pthread_condattr_setclock'];
|
|
8887
|
+
_pthread_mutex_trylock = Module['_pthread_mutex_trylock'] =
|
|
8888
|
+
wasmExports['pthread_mutex_trylock'];
|
|
8889
|
+
_pthread_mutexattr_destroy = Module['_pthread_mutexattr_destroy'] =
|
|
8890
|
+
wasmExports['pthread_mutexattr_destroy'];
|
|
8891
|
+
_pthread_mutexattr_init = Module['_pthread_mutexattr_init'] =
|
|
8892
|
+
wasmExports['pthread_mutexattr_init'];
|
|
8893
|
+
_pthread_mutexattr_settype = Module['_pthread_mutexattr_settype'] =
|
|
8894
|
+
wasmExports['pthread_mutexattr_settype'];
|
|
8895
|
+
_sched_yield = Module['_sched_yield'] = wasmExports['sched_yield'];
|
|
8896
|
+
_sqlite3_auto_extension = Module['_sqlite3_auto_extension'] =
|
|
8897
|
+
wasmExports['sqlite3_auto_extension'];
|
|
8898
|
+
_sqlite3_cancel_auto_extension = Module[
|
|
8899
|
+
'_sqlite3_cancel_auto_extension'
|
|
8900
|
+
] = wasmExports['sqlite3_cancel_auto_extension'];
|
|
8901
|
+
_pthread_mutex_init = Module['_pthread_mutex_init'] =
|
|
8902
|
+
wasmExports['pthread_mutex_init'];
|
|
8903
|
+
_pthread_mutex_destroy = Module['_pthread_mutex_destroy'] =
|
|
8904
|
+
wasmExports['pthread_mutex_destroy'];
|
|
8905
|
+
_pthread_mutex_lock = Module['_pthread_mutex_lock'] =
|
|
8906
|
+
wasmExports['pthread_mutex_lock'];
|
|
8907
|
+
_pthread_mutex_unlock = Module['_pthread_mutex_unlock'] =
|
|
8908
|
+
wasmExports['pthread_mutex_unlock'];
|
|
8684
8909
|
_rewind = Module['_rewind'] = wasmExports['rewind'];
|
|
8685
8910
|
_modf = Module['_modf'] = wasmExports['modf'];
|
|
8686
8911
|
_round = Module['_round'] = wasmExports['round'];
|
|
8912
|
+
_pthread_cond_init = Module['_pthread_cond_init'] =
|
|
8913
|
+
wasmExports['pthread_cond_init'];
|
|
8914
|
+
_pthread_cond_destroy = Module['_pthread_cond_destroy'] =
|
|
8915
|
+
wasmExports['pthread_cond_destroy'];
|
|
8687
8916
|
___extenddftf2 = Module['___extenddftf2'] =
|
|
8688
8917
|
wasmExports['__extenddftf2'];
|
|
8689
8918
|
___letf2 = Module['___letf2'] = wasmExports['__letf2'];
|
|
@@ -8694,6 +8923,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8694
8923
|
___cxa_atexit = Module['___cxa_atexit'] = wasmExports['__cxa_atexit'];
|
|
8695
8924
|
___dl_seterr = wasmExports['__dl_seterr'];
|
|
8696
8925
|
__emscripten_find_dylib = wasmExports['_emscripten_find_dylib'];
|
|
8926
|
+
_pthread_cond_timedwait = Module['_pthread_cond_timedwait'] =
|
|
8927
|
+
wasmExports['pthread_cond_timedwait'];
|
|
8697
8928
|
_mbstowcs = Module['_mbstowcs'] = wasmExports['mbstowcs'];
|
|
8698
8929
|
_emscripten_builtin_memalign =
|
|
8699
8930
|
wasmExports['emscripten_builtin_memalign'];
|
|
@@ -8735,63 +8966,64 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8735
8966
|
wasmExports['__stack_pointer'];
|
|
8736
8967
|
__indirect_function_table = wasmTable =
|
|
8737
8968
|
wasmExports['__indirect_function_table'];
|
|
8969
|
+
___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
|
|
8738
8970
|
}
|
|
8739
|
-
var _file_globals = (Module['_file_globals'] =
|
|
8740
|
-
var _sapi_module = (Module['_sapi_module'] =
|
|
8741
|
-
var _sapi_globals = (Module['_sapi_globals'] =
|
|
8742
|
-
var _compiler_globals = (Module['_compiler_globals'] =
|
|
8743
|
-
var _executor_globals = (Module['_executor_globals'] =
|
|
8744
|
-
var _zend_compile_string = (Module['_zend_compile_string'] =
|
|
8745
|
-
var _zend_ce_traversable = (Module['_zend_ce_traversable'] =
|
|
8746
|
-
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] =
|
|
8747
|
-
var _zend_ce_iterator = (Module['_zend_ce_iterator'] =
|
|
8748
|
-
var _zend_ce_serializable = (Module['_zend_ce_serializable'] =
|
|
8749
|
-
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] =
|
|
8750
|
-
var _zend_ce_countable = (Module['_zend_ce_countable'] =
|
|
8751
|
-
var _zend_ce_stringable = (Module['_zend_ce_stringable'] =
|
|
8752
|
-
var _zend_ce_exception = (Module['_zend_ce_exception'] =
|
|
8753
|
-
var _zend_ce_throwable = (Module['_zend_ce_throwable'] =
|
|
8971
|
+
var _file_globals = (Module['_file_globals'] = 12819824);
|
|
8972
|
+
var _sapi_module = (Module['_sapi_module'] = 12765412);
|
|
8973
|
+
var _sapi_globals = (Module['_sapi_globals'] = 12765560);
|
|
8974
|
+
var _compiler_globals = (Module['_compiler_globals'] = 12822608);
|
|
8975
|
+
var _executor_globals = (Module['_executor_globals'] = 12822992);
|
|
8976
|
+
var _zend_compile_string = (Module['_zend_compile_string'] = 12824196);
|
|
8977
|
+
var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 12677588);
|
|
8978
|
+
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 12677592);
|
|
8979
|
+
var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 12677596);
|
|
8980
|
+
var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 12677600);
|
|
8981
|
+
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 12677604);
|
|
8982
|
+
var _zend_ce_countable = (Module['_zend_ce_countable'] = 12677608);
|
|
8983
|
+
var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 12677612);
|
|
8984
|
+
var _zend_ce_exception = (Module['_zend_ce_exception'] = 12820368);
|
|
8985
|
+
var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 12820352);
|
|
8754
8986
|
var _zend_ce_division_by_zero_error = (Module[
|
|
8755
8987
|
'_zend_ce_division_by_zero_error'
|
|
8756
|
-
] =
|
|
8988
|
+
] = 12820496);
|
|
8757
8989
|
var _zend_ce_unhandled_match_error = (Module[
|
|
8758
8990
|
'_zend_ce_unhandled_match_error'
|
|
8759
|
-
] =
|
|
8760
|
-
var _zend_empty_string = (Module['_zend_empty_string'] =
|
|
8991
|
+
] = 12820500);
|
|
8992
|
+
var _zend_empty_string = (Module['_zend_empty_string'] = 12676064);
|
|
8761
8993
|
var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
|
|
8762
|
-
|
|
8763
|
-
var _zend_one_char_string = (Module['_zend_one_char_string'] =
|
|
8994
|
+
12676132);
|
|
8995
|
+
var _zend_one_char_string = (Module['_zend_one_char_string'] = 12676144);
|
|
8764
8996
|
var _std_object_handlers = (Module['_std_object_handlers'] = 11781020);
|
|
8765
|
-
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] =
|
|
8766
|
-
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] =
|
|
8997
|
+
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 12677816);
|
|
8998
|
+
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 12677820);
|
|
8767
8999
|
var ___memory_base = (Module['___memory_base'] = 0);
|
|
8768
9000
|
var ___table_base = (Module['___table_base'] = 1);
|
|
8769
|
-
var _stdout = (Module['_stdout'] =
|
|
9001
|
+
var _stdout = (Module['_stdout'] = 12669248);
|
|
8770
9002
|
var __playground_zend_side_module_data_exports = (Module[
|
|
8771
9003
|
'__playground_zend_side_module_data_exports'
|
|
8772
9004
|
] = 12175808);
|
|
8773
9005
|
var __playground_zend_side_module_function_exports = (Module[
|
|
8774
9006
|
'__playground_zend_side_module_function_exports'
|
|
8775
9007
|
] = 12175904);
|
|
8776
|
-
var _timezone = (Module['_timezone'] =
|
|
8777
|
-
var _tzname = (Module['_tzname'] =
|
|
8778
|
-
var ___heap_base =
|
|
9008
|
+
var _timezone = (Module['_timezone'] = 13159472);
|
|
9009
|
+
var _tzname = (Module['_tzname'] = 13159480);
|
|
9010
|
+
var ___heap_base = 14221744;
|
|
8779
9011
|
var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
|
|
8780
|
-
|
|
9012
|
+
13173148);
|
|
8781
9013
|
var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
|
|
8782
9014
|
'__ZTVN10__cxxabiv120__si_class_type_infoE'
|
|
8783
|
-
] =
|
|
9015
|
+
] = 12669536);
|
|
8784
9016
|
var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
|
|
8785
9017
|
'__ZTVN10__cxxabiv117__class_type_infoE'
|
|
8786
|
-
] =
|
|
9018
|
+
] = 12669496);
|
|
8787
9019
|
var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
|
|
8788
9020
|
'__ZTVN10__cxxabiv121__vmi_class_type_infoE'
|
|
8789
|
-
] =
|
|
9021
|
+
] = 12669588);
|
|
8790
9022
|
var __ZTISt20bad_array_new_length = (Module[
|
|
8791
9023
|
'__ZTISt20bad_array_new_length'
|
|
8792
|
-
] =
|
|
8793
|
-
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] =
|
|
8794
|
-
var __ZTISt12length_error = (Module['__ZTISt12length_error'] =
|
|
9024
|
+
] = 12669708);
|
|
9025
|
+
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 12669784);
|
|
9026
|
+
var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 12669804);
|
|
8795
9027
|
var wasmImports = {
|
|
8796
9028
|
__assert_fail: ___assert_fail,
|
|
8797
9029
|
__asyncjs__js_module_onMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-1",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.35",
|
|
4
4
|
"description": "PHP 8.1 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": {
|