@php-wasm/web-8-0 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_0.js +104 -32
- package/jspi/8_0_30/php_8_0.wasm +0 -0
- package/jspi/php_8_0.js +296 -64
- package/package.json +3 -3
package/asyncify/php_8_0.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);
|
|
@@ -7650,21 +7708,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7650
7708
|
const SO_SNDTIMEO = 67;
|
|
7651
7709
|
const IPPROTO_TCP = 6;
|
|
7652
7710
|
const TCP_NODELAY = 1;
|
|
7711
|
+
if (
|
|
7712
|
+
level === SOL_SOCKET &&
|
|
7713
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7714
|
+
) {
|
|
7715
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7716
|
+
optionValuePtr,
|
|
7717
|
+
optionLen
|
|
7718
|
+
);
|
|
7719
|
+
if (timeoutMs === null) {
|
|
7720
|
+
return -1;
|
|
7721
|
+
}
|
|
7722
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7723
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7724
|
+
timeouts.receive = timeoutMs;
|
|
7725
|
+
} else {
|
|
7726
|
+
timeouts.send = timeoutMs;
|
|
7727
|
+
}
|
|
7728
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7729
|
+
return 0;
|
|
7730
|
+
}
|
|
7653
7731
|
const isForwardable =
|
|
7654
7732
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7655
7733
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7656
|
-
|
|
7657
|
-
level === SOL_SOCKET &&
|
|
7658
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7659
|
-
if (!isForwardable && !isIgnorable) {
|
|
7734
|
+
if (!isForwardable) {
|
|
7660
7735
|
console.warn(
|
|
7661
7736
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7662
7737
|
);
|
|
7663
7738
|
return -1;
|
|
7664
7739
|
}
|
|
7665
|
-
if (isIgnorable) {
|
|
7666
|
-
return 0;
|
|
7667
|
-
}
|
|
7668
7740
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7669
7741
|
if (!ws) {
|
|
7670
7742
|
return -1;
|
package/jspi/8_0_30/php_8_0.wasm
CHANGED
|
Binary file
|
package/jspi/php_8_0.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dependencyFilename from './8_0_30/php_8_0.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
3
|
+
export const dependenciesTotalSize = 16724961;
|
|
4
4
|
const phpVersionString = '8.0.30';
|
|
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);
|
|
@@ -7520,21 +7581,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7520
7581
|
const SO_SNDTIMEO = 67;
|
|
7521
7582
|
const IPPROTO_TCP = 6;
|
|
7522
7583
|
const TCP_NODELAY = 1;
|
|
7584
|
+
if (
|
|
7585
|
+
level === SOL_SOCKET &&
|
|
7586
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7587
|
+
) {
|
|
7588
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7589
|
+
optionValuePtr,
|
|
7590
|
+
optionLen
|
|
7591
|
+
);
|
|
7592
|
+
if (timeoutMs === null) {
|
|
7593
|
+
return -1;
|
|
7594
|
+
}
|
|
7595
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7596
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7597
|
+
timeouts.receive = timeoutMs;
|
|
7598
|
+
} else {
|
|
7599
|
+
timeouts.send = timeoutMs;
|
|
7600
|
+
}
|
|
7601
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7602
|
+
return 0;
|
|
7603
|
+
}
|
|
7523
7604
|
const isForwardable =
|
|
7524
7605
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7525
7606
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7526
|
-
|
|
7527
|
-
level === SOL_SOCKET &&
|
|
7528
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7529
|
-
if (!isForwardable && !isIgnorable) {
|
|
7607
|
+
if (!isForwardable) {
|
|
7530
7608
|
console.warn(
|
|
7531
7609
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7532
7610
|
);
|
|
7533
7611
|
return -1;
|
|
7534
7612
|
}
|
|
7535
|
-
if (isIgnorable) {
|
|
7536
|
-
return 0;
|
|
7537
|
-
}
|
|
7538
7613
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7539
7614
|
if (!ws) {
|
|
7540
7615
|
return -1;
|
|
@@ -8039,6 +8114,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8039
8114
|
_zend_call_function,
|
|
8040
8115
|
_zend_call_known_function,
|
|
8041
8116
|
_zend_call_known_instance_method_with_2_params,
|
|
8117
|
+
_zend_lookup_class_ex,
|
|
8042
8118
|
_destroy_op_array,
|
|
8043
8119
|
__is_numeric_string_ex,
|
|
8044
8120
|
_convert_to_long,
|
|
@@ -8047,6 +8123,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8047
8123
|
__try_convert_to_string,
|
|
8048
8124
|
_zval_get_double_func,
|
|
8049
8125
|
_zval_get_string_func,
|
|
8126
|
+
_zend_is_true,
|
|
8050
8127
|
_zend_binary_strcmp,
|
|
8051
8128
|
_numeric_compare_function,
|
|
8052
8129
|
_compare_function,
|
|
@@ -8089,9 +8166,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8089
8166
|
_zend_register_internal_class_ex,
|
|
8090
8167
|
_zend_register_internal_class,
|
|
8091
8168
|
_zend_class_implements,
|
|
8169
|
+
_zend_register_internal_interface,
|
|
8170
|
+
_zend_is_callable,
|
|
8092
8171
|
_zend_fcall_info_init,
|
|
8093
8172
|
_zend_try_assign_typed_ref_long,
|
|
8094
8173
|
_zend_try_assign_typed_ref_arr,
|
|
8174
|
+
_zend_declare_property,
|
|
8095
8175
|
_zend_declare_property_null,
|
|
8096
8176
|
_zend_declare_class_constant_null,
|
|
8097
8177
|
_zend_declare_class_constant_long,
|
|
@@ -8100,10 +8180,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8100
8180
|
_zend_update_property,
|
|
8101
8181
|
_zend_replace_error_handling,
|
|
8102
8182
|
_zend_restore_error_handling,
|
|
8183
|
+
_zend_is_iterable,
|
|
8103
8184
|
_zend_hash_str_find,
|
|
8104
8185
|
__zend_hash_init,
|
|
8105
8186
|
__zend_new_array_0,
|
|
8106
8187
|
__zend_new_array,
|
|
8188
|
+
_zend_array_count,
|
|
8107
8189
|
_zend_hash_update,
|
|
8108
8190
|
_zend_hash_str_update,
|
|
8109
8191
|
_zend_hash_next_index_insert,
|
|
@@ -8112,6 +8194,10 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8112
8194
|
_zend_array_destroy,
|
|
8113
8195
|
_zend_hash_copy,
|
|
8114
8196
|
_zend_hash_index_find,
|
|
8197
|
+
_zend_hash_move_forward_ex,
|
|
8198
|
+
_zend_hash_get_current_key_zval_ex,
|
|
8199
|
+
_zend_hash_get_current_key_type_ex,
|
|
8200
|
+
_zend_hash_get_current_data_ex,
|
|
8115
8201
|
_zend_hash_sort_ex,
|
|
8116
8202
|
_zend_execute,
|
|
8117
8203
|
_zend_register_ini_entries,
|
|
@@ -8130,19 +8216,25 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8130
8216
|
_zend_create_internal_iterator_zval,
|
|
8131
8217
|
_zend_throw_exception,
|
|
8132
8218
|
_zend_throw_exception_ex,
|
|
8219
|
+
_zend_throw_exception_object,
|
|
8133
8220
|
_zend_strtod,
|
|
8134
8221
|
_gc_possible_root,
|
|
8135
8222
|
_zend_object_std_init,
|
|
8136
8223
|
_zend_object_std_dtor,
|
|
8137
8224
|
_zend_objects_destroy_object,
|
|
8225
|
+
_zend_objects_new,
|
|
8138
8226
|
_zend_objects_clone_members,
|
|
8227
|
+
_zend_std_get_properties,
|
|
8139
8228
|
_zend_std_read_property,
|
|
8140
8229
|
_zend_std_write_property,
|
|
8141
8230
|
_zend_std_get_property_ptr_ptr,
|
|
8142
8231
|
_zend_std_get_method,
|
|
8143
8232
|
_zend_std_compare_objects,
|
|
8233
|
+
_zend_std_has_property,
|
|
8144
8234
|
_zend_objects_store_del,
|
|
8235
|
+
_zend_do_implement_interface,
|
|
8145
8236
|
_smart_str_erealloc,
|
|
8237
|
+
_strtoll,
|
|
8146
8238
|
_strlen,
|
|
8147
8239
|
_munmap,
|
|
8148
8240
|
_free,
|
|
@@ -8152,6 +8244,9 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8152
8244
|
_fclose,
|
|
8153
8245
|
_strcmp,
|
|
8154
8246
|
_malloc,
|
|
8247
|
+
___wasm_setjmp,
|
|
8248
|
+
___wasm_setjmp_test,
|
|
8249
|
+
___wasm_longjmp,
|
|
8155
8250
|
_atoi,
|
|
8156
8251
|
_memchr,
|
|
8157
8252
|
_snprintf,
|
|
@@ -8166,17 +8261,28 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8166
8261
|
_strncmp,
|
|
8167
8262
|
_tolower,
|
|
8168
8263
|
_strtok_r,
|
|
8264
|
+
_unlink,
|
|
8169
8265
|
_strstr,
|
|
8266
|
+
_getcwd,
|
|
8170
8267
|
_stat,
|
|
8171
8268
|
_fopen,
|
|
8172
8269
|
_open,
|
|
8270
|
+
_rename,
|
|
8271
|
+
_mkdir,
|
|
8272
|
+
_rmdir,
|
|
8273
|
+
_opendir,
|
|
8173
8274
|
_strncpy,
|
|
8275
|
+
_isalnum,
|
|
8174
8276
|
_close,
|
|
8277
|
+
_ftell,
|
|
8278
|
+
_write,
|
|
8279
|
+
_fseek,
|
|
8175
8280
|
_fwrite,
|
|
8176
8281
|
_wasm_read,
|
|
8177
8282
|
_feof,
|
|
8178
8283
|
_fflush,
|
|
8179
8284
|
_mmap,
|
|
8285
|
+
_closedir,
|
|
8180
8286
|
_gettimeofday,
|
|
8181
8287
|
_siprintf,
|
|
8182
8288
|
_strtol,
|
|
@@ -8201,16 +8307,20 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8201
8307
|
_strcpy,
|
|
8202
8308
|
_strcat,
|
|
8203
8309
|
_strtoul,
|
|
8310
|
+
_clock_gettime,
|
|
8204
8311
|
_setlocale,
|
|
8205
8312
|
_tzset,
|
|
8206
8313
|
_wasm_sleep,
|
|
8314
|
+
_readdir,
|
|
8207
8315
|
_expf,
|
|
8208
8316
|
_qsort,
|
|
8209
8317
|
_rewind,
|
|
8210
8318
|
_fgets,
|
|
8319
|
+
_writev,
|
|
8211
8320
|
_calloc,
|
|
8212
8321
|
_initgroups,
|
|
8213
8322
|
_atol,
|
|
8323
|
+
_posix_memalign,
|
|
8214
8324
|
_strncat,
|
|
8215
8325
|
_abort,
|
|
8216
8326
|
___wrap_usleep,
|
|
@@ -8237,7 +8347,25 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8237
8347
|
_php_wasm_init,
|
|
8238
8348
|
_wasm_free,
|
|
8239
8349
|
_wasm_trace,
|
|
8350
|
+
_getentropy,
|
|
8351
|
+
_pthread_cond_signal,
|
|
8352
|
+
_pthread_cond_wait,
|
|
8353
|
+
_pthread_condattr_destroy,
|
|
8354
|
+
_pthread_condattr_init,
|
|
8355
|
+
_pthread_condattr_setclock,
|
|
8356
|
+
_pthread_mutex_trylock,
|
|
8357
|
+
_pthread_mutexattr_destroy,
|
|
8358
|
+
_pthread_mutexattr_init,
|
|
8359
|
+
_pthread_mutexattr_settype,
|
|
8360
|
+
_sched_yield,
|
|
8361
|
+
_sqlite3_auto_extension,
|
|
8362
|
+
_sqlite3_cancel_auto_extension,
|
|
8363
|
+
_pthread_mutex_init,
|
|
8364
|
+
_pthread_mutex_destroy,
|
|
8365
|
+
_pthread_mutex_lock,
|
|
8366
|
+
_pthread_mutex_unlock,
|
|
8240
8367
|
_modf,
|
|
8368
|
+
_strerror_r,
|
|
8241
8369
|
___ctype_get_mb_cur_max,
|
|
8242
8370
|
___extenddftf2,
|
|
8243
8371
|
___letf2,
|
|
@@ -8248,6 +8376,9 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8248
8376
|
___dl_seterr,
|
|
8249
8377
|
__emscripten_find_dylib,
|
|
8250
8378
|
_isdigit,
|
|
8379
|
+
_pthread_cond_init,
|
|
8380
|
+
_pthread_cond_destroy,
|
|
8381
|
+
_pthread_cond_timedwait,
|
|
8251
8382
|
_mbstowcs,
|
|
8252
8383
|
_emscripten_builtin_memalign,
|
|
8253
8384
|
_round,
|
|
@@ -8273,6 +8404,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8273
8404
|
memory,
|
|
8274
8405
|
___stack_pointer,
|
|
8275
8406
|
__indirect_function_table,
|
|
8407
|
+
___c_longjmp,
|
|
8276
8408
|
wasmTable,
|
|
8277
8409
|
wasmMemory;
|
|
8278
8410
|
function assignWasmExports(wasmExports) {
|
|
@@ -8346,6 +8478,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8346
8478
|
_zend_call_known_instance_method_with_2_params = Module[
|
|
8347
8479
|
'_zend_call_known_instance_method_with_2_params'
|
|
8348
8480
|
] = wasmExports['zend_call_known_instance_method_with_2_params'];
|
|
8481
|
+
_zend_lookup_class_ex = Module['_zend_lookup_class_ex'] =
|
|
8482
|
+
wasmExports['zend_lookup_class_ex'];
|
|
8349
8483
|
_destroy_op_array = Module['_destroy_op_array'] =
|
|
8350
8484
|
wasmExports['destroy_op_array'];
|
|
8351
8485
|
__is_numeric_string_ex = Module['__is_numeric_string_ex'] =
|
|
@@ -8362,6 +8496,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8362
8496
|
wasmExports['zval_get_double_func'];
|
|
8363
8497
|
_zval_get_string_func = Module['_zval_get_string_func'] =
|
|
8364
8498
|
wasmExports['zval_get_string_func'];
|
|
8499
|
+
_zend_is_true = Module['_zend_is_true'] = wasmExports['zend_is_true'];
|
|
8365
8500
|
_zend_binary_strcmp = Module['_zend_binary_strcmp'] =
|
|
8366
8501
|
wasmExports['zend_binary_strcmp'];
|
|
8367
8502
|
_numeric_compare_function = Module['_numeric_compare_function'] =
|
|
@@ -8452,6 +8587,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8452
8587
|
] = wasmExports['zend_register_internal_class'];
|
|
8453
8588
|
_zend_class_implements = Module['_zend_class_implements'] =
|
|
8454
8589
|
wasmExports['zend_class_implements'];
|
|
8590
|
+
_zend_register_internal_interface = Module[
|
|
8591
|
+
'_zend_register_internal_interface'
|
|
8592
|
+
] = wasmExports['zend_register_internal_interface'];
|
|
8593
|
+
_zend_is_callable = Module['_zend_is_callable'] =
|
|
8594
|
+
wasmExports['zend_is_callable'];
|
|
8455
8595
|
_zend_fcall_info_init = Module['_zend_fcall_info_init'] =
|
|
8456
8596
|
wasmExports['zend_fcall_info_init'];
|
|
8457
8597
|
_zend_try_assign_typed_ref_long = Module[
|
|
@@ -8460,6 +8600,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8460
8600
|
_zend_try_assign_typed_ref_arr = Module[
|
|
8461
8601
|
'_zend_try_assign_typed_ref_arr'
|
|
8462
8602
|
] = wasmExports['zend_try_assign_typed_ref_arr'];
|
|
8603
|
+
_zend_declare_property = Module['_zend_declare_property'] =
|
|
8604
|
+
wasmExports['zend_declare_property'];
|
|
8463
8605
|
_zend_declare_property_null = Module['_zend_declare_property_null'] =
|
|
8464
8606
|
wasmExports['zend_declare_property_null'];
|
|
8465
8607
|
_zend_declare_class_constant_null = Module[
|
|
@@ -8480,6 +8622,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8480
8622
|
wasmExports['zend_replace_error_handling'];
|
|
8481
8623
|
_zend_restore_error_handling = Module['_zend_restore_error_handling'] =
|
|
8482
8624
|
wasmExports['zend_restore_error_handling'];
|
|
8625
|
+
_zend_is_iterable = Module['_zend_is_iterable'] =
|
|
8626
|
+
wasmExports['zend_is_iterable'];
|
|
8483
8627
|
_zend_hash_str_find = Module['_zend_hash_str_find'] =
|
|
8484
8628
|
wasmExports['zend_hash_str_find'];
|
|
8485
8629
|
__zend_hash_init = Module['__zend_hash_init'] =
|
|
@@ -8488,6 +8632,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8488
8632
|
wasmExports['_zend_new_array_0'];
|
|
8489
8633
|
__zend_new_array = Module['__zend_new_array'] =
|
|
8490
8634
|
wasmExports['_zend_new_array'];
|
|
8635
|
+
_zend_array_count = Module['_zend_array_count'] =
|
|
8636
|
+
wasmExports['zend_array_count'];
|
|
8491
8637
|
_zend_hash_update = Module['_zend_hash_update'] =
|
|
8492
8638
|
wasmExports['zend_hash_update'];
|
|
8493
8639
|
_zend_hash_str_update = Module['_zend_hash_str_update'] =
|
|
@@ -8504,6 +8650,17 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8504
8650
|
wasmExports['zend_hash_copy'];
|
|
8505
8651
|
_zend_hash_index_find = Module['_zend_hash_index_find'] =
|
|
8506
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'];
|
|
8507
8664
|
_zend_hash_sort_ex = Module['_zend_hash_sort_ex'] =
|
|
8508
8665
|
wasmExports['zend_hash_sort_ex'];
|
|
8509
8666
|
_zend_execute = Module['_zend_execute'] = wasmExports['zend_execute'];
|
|
@@ -8538,6 +8695,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8538
8695
|
wasmExports['zend_throw_exception'];
|
|
8539
8696
|
_zend_throw_exception_ex = Module['_zend_throw_exception_ex'] =
|
|
8540
8697
|
wasmExports['zend_throw_exception_ex'];
|
|
8698
|
+
_zend_throw_exception_object = Module['_zend_throw_exception_object'] =
|
|
8699
|
+
wasmExports['zend_throw_exception_object'];
|
|
8541
8700
|
_zend_strtod = Module['_zend_strtod'] = wasmExports['zend_strtod'];
|
|
8542
8701
|
_gc_possible_root = Module['_gc_possible_root'] =
|
|
8543
8702
|
wasmExports['gc_possible_root'];
|
|
@@ -8547,8 +8706,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8547
8706
|
wasmExports['zend_object_std_dtor'];
|
|
8548
8707
|
_zend_objects_destroy_object = Module['_zend_objects_destroy_object'] =
|
|
8549
8708
|
wasmExports['zend_objects_destroy_object'];
|
|
8709
|
+
_zend_objects_new = Module['_zend_objects_new'] =
|
|
8710
|
+
wasmExports['zend_objects_new'];
|
|
8550
8711
|
_zend_objects_clone_members = Module['_zend_objects_clone_members'] =
|
|
8551
8712
|
wasmExports['zend_objects_clone_members'];
|
|
8713
|
+
_zend_std_get_properties = Module['_zend_std_get_properties'] =
|
|
8714
|
+
wasmExports['zend_std_get_properties'];
|
|
8552
8715
|
_zend_std_read_property = Module['_zend_std_read_property'] =
|
|
8553
8716
|
wasmExports['zend_std_read_property'];
|
|
8554
8717
|
_zend_std_write_property = Module['_zend_std_write_property'] =
|
|
@@ -8560,10 +8723,15 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8560
8723
|
wasmExports['zend_std_get_method'];
|
|
8561
8724
|
_zend_std_compare_objects = Module['_zend_std_compare_objects'] =
|
|
8562
8725
|
wasmExports['zend_std_compare_objects'];
|
|
8726
|
+
_zend_std_has_property = Module['_zend_std_has_property'] =
|
|
8727
|
+
wasmExports['zend_std_has_property'];
|
|
8563
8728
|
_zend_objects_store_del = Module['_zend_objects_store_del'] =
|
|
8564
8729
|
wasmExports['zend_objects_store_del'];
|
|
8730
|
+
_zend_do_implement_interface = Module['_zend_do_implement_interface'] =
|
|
8731
|
+
wasmExports['zend_do_implement_interface'];
|
|
8565
8732
|
_smart_str_erealloc = Module['_smart_str_erealloc'] =
|
|
8566
8733
|
wasmExports['smart_str_erealloc'];
|
|
8734
|
+
_strtoll = Module['_strtoll'] = wasmExports['strtoll'];
|
|
8567
8735
|
_strlen = Module['_strlen'] = wasmExports['strlen'];
|
|
8568
8736
|
_munmap = Module['_munmap'] = wasmExports['munmap'];
|
|
8569
8737
|
_free = Module['_free'] = wasmExports['free'];
|
|
@@ -8576,6 +8744,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8576
8744
|
PHPLoader['malloc'] =
|
|
8577
8745
|
Module['_malloc'] =
|
|
8578
8746
|
wasmExports['malloc'];
|
|
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'];
|
|
8579
8753
|
_atoi = Module['_atoi'] = wasmExports['atoi'];
|
|
8580
8754
|
_memchr = Module['_memchr'] = wasmExports['memchr'];
|
|
8581
8755
|
_snprintf = Module['_snprintf'] = wasmExports['snprintf'];
|
|
@@ -8591,17 +8765,28 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8591
8765
|
_strncmp = Module['_strncmp'] = wasmExports['strncmp'];
|
|
8592
8766
|
_tolower = Module['_tolower'] = wasmExports['tolower'];
|
|
8593
8767
|
_strtok_r = Module['_strtok_r'] = wasmExports['strtok_r'];
|
|
8768
|
+
_unlink = Module['_unlink'] = wasmExports['unlink'];
|
|
8594
8769
|
_strstr = Module['_strstr'] = wasmExports['strstr'];
|
|
8770
|
+
_getcwd = Module['_getcwd'] = wasmExports['getcwd'];
|
|
8595
8771
|
_stat = Module['_stat'] = wasmExports['stat'];
|
|
8596
8772
|
_fopen = Module['_fopen'] = wasmExports['fopen'];
|
|
8597
8773
|
_open = Module['_open'] = wasmExports['open'];
|
|
8774
|
+
_rename = Module['_rename'] = wasmExports['rename'];
|
|
8775
|
+
_mkdir = Module['_mkdir'] = wasmExports['mkdir'];
|
|
8776
|
+
_rmdir = Module['_rmdir'] = wasmExports['rmdir'];
|
|
8777
|
+
_opendir = Module['_opendir'] = wasmExports['opendir'];
|
|
8598
8778
|
_strncpy = Module['_strncpy'] = wasmExports['strncpy'];
|
|
8779
|
+
_isalnum = Module['_isalnum'] = wasmExports['isalnum'];
|
|
8599
8780
|
_close = Module['_close'] = wasmExports['close'];
|
|
8781
|
+
_ftell = Module['_ftell'] = wasmExports['ftell'];
|
|
8782
|
+
_write = Module['_write'] = wasmExports['write'];
|
|
8783
|
+
_fseek = Module['_fseek'] = wasmExports['fseek'];
|
|
8600
8784
|
_fwrite = Module['_fwrite'] = wasmExports['fwrite'];
|
|
8601
8785
|
_wasm_read = Module['_wasm_read'] = wasmExports['wasm_read'];
|
|
8602
8786
|
_feof = Module['_feof'] = wasmExports['feof'];
|
|
8603
8787
|
_fflush = Module['_fflush'] = wasmExports['fflush'];
|
|
8604
8788
|
_mmap = Module['_mmap'] = wasmExports['mmap'];
|
|
8789
|
+
_closedir = Module['_closedir'] = wasmExports['closedir'];
|
|
8605
8790
|
_gettimeofday = Module['_gettimeofday'] = wasmExports['gettimeofday'];
|
|
8606
8791
|
_siprintf = Module['_siprintf'] = wasmExports['siprintf'];
|
|
8607
8792
|
_strtol = Module['_strtol'] = wasmExports['strtol'];
|
|
@@ -8628,16 +8813,22 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8628
8813
|
_strcpy = Module['_strcpy'] = wasmExports['strcpy'];
|
|
8629
8814
|
_strcat = Module['_strcat'] = wasmExports['strcat'];
|
|
8630
8815
|
_strtoul = Module['_strtoul'] = wasmExports['strtoul'];
|
|
8816
|
+
_clock_gettime = Module['_clock_gettime'] =
|
|
8817
|
+
wasmExports['clock_gettime'];
|
|
8631
8818
|
_setlocale = Module['_setlocale'] = wasmExports['setlocale'];
|
|
8632
8819
|
_tzset = Module['_tzset'] = wasmExports['tzset'];
|
|
8633
8820
|
_wasm_sleep = Module['_wasm_sleep'] = wasmExports['wasm_sleep'];
|
|
8821
|
+
_readdir = Module['_readdir'] = wasmExports['readdir'];
|
|
8634
8822
|
_expf = Module['_expf'] = wasmExports['expf'];
|
|
8635
8823
|
_qsort = Module['_qsort'] = wasmExports['qsort'];
|
|
8636
8824
|
_rewind = Module['_rewind'] = wasmExports['rewind'];
|
|
8637
8825
|
_fgets = Module['_fgets'] = wasmExports['fgets'];
|
|
8826
|
+
_writev = Module['_writev'] = wasmExports['writev'];
|
|
8638
8827
|
_calloc = wasmExports['calloc'];
|
|
8639
8828
|
_initgroups = Module['_initgroups'] = wasmExports['initgroups'];
|
|
8640
8829
|
_atol = Module['_atol'] = wasmExports['atol'];
|
|
8830
|
+
_posix_memalign = Module['_posix_memalign'] =
|
|
8831
|
+
wasmExports['posix_memalign'];
|
|
8641
8832
|
_strncat = Module['_strncat'] = wasmExports['strncat'];
|
|
8642
8833
|
_abort = Module['_abort'] = wasmExports['abort'];
|
|
8643
8834
|
___wrap_usleep = Module['___wrap_usleep'] =
|
|
@@ -8688,7 +8879,41 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8688
8879
|
Module['_wasm_free'] =
|
|
8689
8880
|
wasmExports['wasm_free'];
|
|
8690
8881
|
_wasm_trace = Module['_wasm_trace'] = wasmExports['wasm_trace'];
|
|
8882
|
+
_getentropy = Module['_getentropy'] = wasmExports['getentropy'];
|
|
8883
|
+
_pthread_cond_signal = Module['_pthread_cond_signal'] =
|
|
8884
|
+
wasmExports['pthread_cond_signal'];
|
|
8885
|
+
_pthread_cond_wait = Module['_pthread_cond_wait'] =
|
|
8886
|
+
wasmExports['pthread_cond_wait'];
|
|
8887
|
+
_pthread_condattr_destroy = Module['_pthread_condattr_destroy'] =
|
|
8888
|
+
wasmExports['pthread_condattr_destroy'];
|
|
8889
|
+
_pthread_condattr_init = Module['_pthread_condattr_init'] =
|
|
8890
|
+
wasmExports['pthread_condattr_init'];
|
|
8891
|
+
_pthread_condattr_setclock = Module['_pthread_condattr_setclock'] =
|
|
8892
|
+
wasmExports['pthread_condattr_setclock'];
|
|
8893
|
+
_pthread_mutex_trylock = Module['_pthread_mutex_trylock'] =
|
|
8894
|
+
wasmExports['pthread_mutex_trylock'];
|
|
8895
|
+
_pthread_mutexattr_destroy = Module['_pthread_mutexattr_destroy'] =
|
|
8896
|
+
wasmExports['pthread_mutexattr_destroy'];
|
|
8897
|
+
_pthread_mutexattr_init = Module['_pthread_mutexattr_init'] =
|
|
8898
|
+
wasmExports['pthread_mutexattr_init'];
|
|
8899
|
+
_pthread_mutexattr_settype = Module['_pthread_mutexattr_settype'] =
|
|
8900
|
+
wasmExports['pthread_mutexattr_settype'];
|
|
8901
|
+
_sched_yield = Module['_sched_yield'] = wasmExports['sched_yield'];
|
|
8902
|
+
_sqlite3_auto_extension = Module['_sqlite3_auto_extension'] =
|
|
8903
|
+
wasmExports['sqlite3_auto_extension'];
|
|
8904
|
+
_sqlite3_cancel_auto_extension = Module[
|
|
8905
|
+
'_sqlite3_cancel_auto_extension'
|
|
8906
|
+
] = wasmExports['sqlite3_cancel_auto_extension'];
|
|
8907
|
+
_pthread_mutex_init = Module['_pthread_mutex_init'] =
|
|
8908
|
+
wasmExports['pthread_mutex_init'];
|
|
8909
|
+
_pthread_mutex_destroy = Module['_pthread_mutex_destroy'] =
|
|
8910
|
+
wasmExports['pthread_mutex_destroy'];
|
|
8911
|
+
_pthread_mutex_lock = Module['_pthread_mutex_lock'] =
|
|
8912
|
+
wasmExports['pthread_mutex_lock'];
|
|
8913
|
+
_pthread_mutex_unlock = Module['_pthread_mutex_unlock'] =
|
|
8914
|
+
wasmExports['pthread_mutex_unlock'];
|
|
8691
8915
|
_modf = Module['_modf'] = wasmExports['modf'];
|
|
8916
|
+
_strerror_r = Module['_strerror_r'] = wasmExports['strerror_r'];
|
|
8692
8917
|
___ctype_get_mb_cur_max = Module['___ctype_get_mb_cur_max'] =
|
|
8693
8918
|
wasmExports['__ctype_get_mb_cur_max'];
|
|
8694
8919
|
___extenddftf2 = Module['___extenddftf2'] =
|
|
@@ -8702,6 +8927,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8702
8927
|
___dl_seterr = wasmExports['__dl_seterr'];
|
|
8703
8928
|
__emscripten_find_dylib = wasmExports['_emscripten_find_dylib'];
|
|
8704
8929
|
_isdigit = Module['_isdigit'] = wasmExports['isdigit'];
|
|
8930
|
+
_pthread_cond_init = Module['_pthread_cond_init'] =
|
|
8931
|
+
wasmExports['pthread_cond_init'];
|
|
8932
|
+
_pthread_cond_destroy = Module['_pthread_cond_destroy'] =
|
|
8933
|
+
wasmExports['pthread_cond_destroy'];
|
|
8934
|
+
_pthread_cond_timedwait = Module['_pthread_cond_timedwait'] =
|
|
8935
|
+
wasmExports['pthread_cond_timedwait'];
|
|
8705
8936
|
_mbstowcs = Module['_mbstowcs'] = wasmExports['mbstowcs'];
|
|
8706
8937
|
_emscripten_builtin_memalign =
|
|
8707
8938
|
wasmExports['emscripten_builtin_memalign'];
|
|
@@ -8744,61 +8975,62 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8744
8975
|
wasmExports['__stack_pointer'];
|
|
8745
8976
|
__indirect_function_table = wasmTable =
|
|
8746
8977
|
wasmExports['__indirect_function_table'];
|
|
8978
|
+
___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
|
|
8747
8979
|
}
|
|
8748
|
-
var _file_globals = (Module['_file_globals'] =
|
|
8749
|
-
var _sapi_module = (Module['_sapi_module'] =
|
|
8750
|
-
var _sapi_globals = (Module['_sapi_globals'] =
|
|
8751
|
-
var _compiler_globals = (Module['_compiler_globals'] =
|
|
8752
|
-
var _executor_globals = (Module['_executor_globals'] =
|
|
8753
|
-
var _zend_compile_string = (Module['_zend_compile_string'] =
|
|
8754
|
-
var _zend_ce_traversable = (Module['_zend_ce_traversable'] =
|
|
8755
|
-
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] =
|
|
8756
|
-
var _zend_ce_iterator = (Module['_zend_ce_iterator'] =
|
|
8757
|
-
var _zend_ce_serializable = (Module['_zend_ce_serializable'] =
|
|
8758
|
-
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] =
|
|
8759
|
-
var _zend_ce_countable = (Module['_zend_ce_countable'] =
|
|
8760
|
-
var _zend_ce_stringable = (Module['_zend_ce_stringable'] =
|
|
8761
|
-
var _zend_ce_exception = (Module['_zend_ce_exception'] =
|
|
8762
|
-
var _zend_ce_throwable = (Module['_zend_ce_throwable'] =
|
|
8980
|
+
var _file_globals = (Module['_file_globals'] = 12085976);
|
|
8981
|
+
var _sapi_module = (Module['_sapi_module'] = 12031788);
|
|
8982
|
+
var _sapi_globals = (Module['_sapi_globals'] = 12031936);
|
|
8983
|
+
var _compiler_globals = (Module['_compiler_globals'] = 12088224);
|
|
8984
|
+
var _executor_globals = (Module['_executor_globals'] = 12088600);
|
|
8985
|
+
var _zend_compile_string = (Module['_zend_compile_string'] = 12089764);
|
|
8986
|
+
var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 11943908);
|
|
8987
|
+
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 11943912);
|
|
8988
|
+
var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 11943916);
|
|
8989
|
+
var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 11943920);
|
|
8990
|
+
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 11943924);
|
|
8991
|
+
var _zend_ce_countable = (Module['_zend_ce_countable'] = 11943928);
|
|
8992
|
+
var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 11943932);
|
|
8993
|
+
var _zend_ce_exception = (Module['_zend_ce_exception'] = 12086520);
|
|
8994
|
+
var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 12086504);
|
|
8763
8995
|
var _zend_ce_division_by_zero_error = (Module[
|
|
8764
8996
|
'_zend_ce_division_by_zero_error'
|
|
8765
|
-
] =
|
|
8997
|
+
] = 12086648);
|
|
8766
8998
|
var _zend_ce_unhandled_match_error = (Module[
|
|
8767
8999
|
'_zend_ce_unhandled_match_error'
|
|
8768
|
-
] =
|
|
8769
|
-
var _zend_empty_string = (Module['_zend_empty_string'] =
|
|
9000
|
+
] = 12086992);
|
|
9001
|
+
var _zend_empty_string = (Module['_zend_empty_string'] = 11942336);
|
|
8770
9002
|
var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
|
|
8771
|
-
|
|
8772
|
-
var _zend_one_char_string = (Module['_zend_one_char_string'] =
|
|
9003
|
+
11942404);
|
|
9004
|
+
var _zend_one_char_string = (Module['_zend_one_char_string'] = 11942416);
|
|
8773
9005
|
var _std_object_handlers = (Module['_std_object_handlers'] = 11601700);
|
|
8774
9006
|
var ___memory_base = (Module['___memory_base'] = 0);
|
|
8775
9007
|
var ___table_base = (Module['___table_base'] = 1);
|
|
8776
|
-
var _stdout = (Module['_stdout'] =
|
|
9008
|
+
var _stdout = (Module['_stdout'] = 11935520);
|
|
8777
9009
|
var __playground_zend_side_module_data_exports = (Module[
|
|
8778
9010
|
'__playground_zend_side_module_data_exports'
|
|
8779
9011
|
] = 11602896);
|
|
8780
9012
|
var __playground_zend_side_module_function_exports = (Module[
|
|
8781
9013
|
'__playground_zend_side_module_function_exports'
|
|
8782
9014
|
] = 11602992);
|
|
8783
|
-
var _timezone = (Module['_timezone'] =
|
|
8784
|
-
var _tzname = (Module['_tzname'] =
|
|
8785
|
-
var ___heap_base =
|
|
9015
|
+
var _timezone = (Module['_timezone'] = 12124624);
|
|
9016
|
+
var _tzname = (Module['_tzname'] = 12124632);
|
|
9017
|
+
var ___heap_base = 13186944;
|
|
8786
9018
|
var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
|
|
8787
|
-
|
|
9019
|
+
12138348);
|
|
8788
9020
|
var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
|
|
8789
9021
|
'__ZTVN10__cxxabiv120__si_class_type_infoE'
|
|
8790
|
-
] =
|
|
9022
|
+
] = 11935808);
|
|
8791
9023
|
var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
|
|
8792
9024
|
'__ZTVN10__cxxabiv117__class_type_infoE'
|
|
8793
|
-
] =
|
|
9025
|
+
] = 11935768);
|
|
8794
9026
|
var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
|
|
8795
9027
|
'__ZTVN10__cxxabiv121__vmi_class_type_infoE'
|
|
8796
|
-
] =
|
|
9028
|
+
] = 11935860);
|
|
8797
9029
|
var __ZTISt20bad_array_new_length = (Module[
|
|
8798
9030
|
'__ZTISt20bad_array_new_length'
|
|
8799
|
-
] =
|
|
8800
|
-
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] =
|
|
8801
|
-
var __ZTISt12length_error = (Module['__ZTISt12length_error'] =
|
|
9031
|
+
] = 11935980);
|
|
9032
|
+
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 11936056);
|
|
9033
|
+
var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 11936076);
|
|
8802
9034
|
var wasmImports = {
|
|
8803
9035
|
__assert_fail: ___assert_fail,
|
|
8804
9036
|
__asyncjs__js_module_onMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-0",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.35",
|
|
4
4
|
"description": "PHP 8.0 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": {
|