@php-wasm/web-8-4 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_4.js +104 -32
- package/jspi/{8_4_20 → 8_4_21}/php_8_4.wasm +0 -0
- package/jspi/php_8_4.js +311 -73
- package/package.json +3 -3
package/asyncify/php_8_4.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_4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import dependencyFilename from './
|
|
1
|
+
import dependencyFilename from './8_4_21/php_8_4.wasm';
|
|
2
2
|
export { dependencyFilename };
|
|
3
|
-
export const dependenciesTotalSize =
|
|
4
|
-
const phpVersionString = '8.4.
|
|
3
|
+
export const dependenciesTotalSize = 22388434;
|
|
4
|
+
const phpVersionString = '8.4.21';
|
|
5
5
|
export function init(RuntimeName, PHPLoader) {
|
|
6
6
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
7
7
|
var Module = typeof PHPLoader != 'undefined' ? PHPLoader : {};
|
|
@@ -174,6 +174,9 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
174
174
|
}
|
|
175
175
|
function getWasmImports() {
|
|
176
176
|
Asyncify.instrumentWasmImports(wasmImports);
|
|
177
|
+
wasmImports['__c_longjmp'] ??= new WebAssembly.Tag({
|
|
178
|
+
parameters: ['i32'],
|
|
179
|
+
});
|
|
177
180
|
var imports = {
|
|
178
181
|
env: wasmImports,
|
|
179
182
|
wasi_snapshot_preview1: wasmImports,
|
|
@@ -4670,6 +4673,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
4670
4673
|
O_NONBLOCK: 2048,
|
|
4671
4674
|
POLLHUP: 16,
|
|
4672
4675
|
SETFL_MASK: 3072,
|
|
4676
|
+
socketTimeouts: new Map,
|
|
4673
4677
|
init: function () {
|
|
4674
4678
|
if (PHPLoader.bindUserSpace) {
|
|
4675
4679
|
addOnInit(() => {
|
|
@@ -5033,6 +5037,29 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5033
5037
|
return [promise, cancel];
|
|
5034
5038
|
},
|
|
5035
5039
|
noop: function () {},
|
|
5040
|
+
parseSocketTimeout: function (optionValuePtr, optionLen) {
|
|
5041
|
+
if (!optionValuePtr || optionLen < 8) {
|
|
5042
|
+
return null;
|
|
5043
|
+
}
|
|
5044
|
+
let seconds;
|
|
5045
|
+
let microseconds;
|
|
5046
|
+
if (optionLen >= 16) {
|
|
5047
|
+
seconds = Number(HEAP64[optionValuePtr >> 3]);
|
|
5048
|
+
microseconds = Number(HEAP64[(optionValuePtr + 8) >> 3]);
|
|
5049
|
+
} else {
|
|
5050
|
+
seconds = HEAP32[optionValuePtr >> 2];
|
|
5051
|
+
microseconds = HEAP32[(optionValuePtr + 4) >> 2];
|
|
5052
|
+
}
|
|
5053
|
+
if (
|
|
5054
|
+
!Number.isFinite(seconds) ||
|
|
5055
|
+
!Number.isFinite(microseconds) ||
|
|
5056
|
+
seconds < 0 ||
|
|
5057
|
+
microseconds < 0
|
|
5058
|
+
) {
|
|
5059
|
+
return null;
|
|
5060
|
+
}
|
|
5061
|
+
return seconds * 1e3 + Math.ceil(microseconds / 1e3);
|
|
5062
|
+
},
|
|
5036
5063
|
spawnProcess: function (command, args, options) {
|
|
5037
5064
|
if (Module['spawnProcess']) {
|
|
5038
5065
|
const spawned = Module['spawnProcess'](command, args, {
|
|
@@ -5061,6 +5088,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5061
5088
|
throw e;
|
|
5062
5089
|
},
|
|
5063
5090
|
shutdownSocket: function (socketd, how) {
|
|
5091
|
+
PHPWASM.socketTimeouts.delete(socketd);
|
|
5064
5092
|
const sock = getSocketFromFD(socketd);
|
|
5065
5093
|
const peer = Object.values(sock.peers)[0];
|
|
5066
5094
|
if (!peer) {
|
|
@@ -5130,41 +5158,74 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
5130
5158
|
wakeUp(-ERRNO_CODES.ECONNREFUSED);
|
|
5131
5159
|
return;
|
|
5132
5160
|
}
|
|
5133
|
-
|
|
5161
|
+
// Wait for the connection to be established. A zero timeval
|
|
5162
|
+
// disables the timeout, matching SO_SNDTIMEO semantics.
|
|
5163
|
+
const sendTimeout = PHPWASM.socketTimeouts.get(sockfd)?.send;
|
|
5164
|
+
const timeout = sendTimeout ?? 3e4;
|
|
5134
5165
|
let resolved = false;
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5166
|
+
let timeoutId;
|
|
5167
|
+
let handleOpen;
|
|
5168
|
+
let handleError;
|
|
5169
|
+
let handleClose;
|
|
5170
|
+
const peer = PHPWASM.getAllPeers(sock).find(
|
|
5171
|
+
(candidate) => candidate.socket === ws
|
|
5172
|
+
);
|
|
5173
|
+
|
|
5174
|
+
const cleanupConnectListeners = () => {
|
|
5175
|
+
if (typeof timeoutId !== 'undefined') {
|
|
5144
5176
|
clearTimeout(timeoutId);
|
|
5145
|
-
ws.removeEventListener('error', handleError);
|
|
5146
|
-
ws.removeEventListener('close', handleClose);
|
|
5147
|
-
wakeUp(0);
|
|
5148
5177
|
}
|
|
5178
|
+
ws.removeEventListener('open', handleOpen);
|
|
5179
|
+
ws.removeEventListener('error', handleError);
|
|
5180
|
+
ws.removeEventListener('close', handleClose);
|
|
5149
5181
|
};
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5182
|
+
|
|
5183
|
+
const cleanupFailedConnect = (errno) => {
|
|
5184
|
+
try {
|
|
5185
|
+
if (
|
|
5186
|
+
ws.readyState !== ws.CLOSING &&
|
|
5187
|
+
ws.readyState !== ws.CLOSED
|
|
5188
|
+
) {
|
|
5189
|
+
ws.close();
|
|
5190
|
+
}
|
|
5191
|
+
} catch (e) {
|
|
5192
|
+
// Ignore close errors on an already-failed connect.
|
|
5157
5193
|
}
|
|
5194
|
+
if (peer) {
|
|
5195
|
+
SOCKFS.websocket_sock_ops.removePeer(sock, peer);
|
|
5196
|
+
}
|
|
5197
|
+
sock.connecting = false;
|
|
5198
|
+
sock.error = errno;
|
|
5158
5199
|
};
|
|
5159
|
-
|
|
5200
|
+
|
|
5201
|
+
const finishConnect = (result) => {
|
|
5160
5202
|
if (!resolved) {
|
|
5161
5203
|
resolved = true;
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5204
|
+
cleanupConnectListeners();
|
|
5205
|
+
if (result < 0) {
|
|
5206
|
+
cleanupFailedConnect(-result);
|
|
5207
|
+
}
|
|
5208
|
+
wakeUp(result);
|
|
5166
5209
|
}
|
|
5167
5210
|
};
|
|
5211
|
+
|
|
5212
|
+
if (timeout > 0) {
|
|
5213
|
+
timeoutId = setTimeout(() => {
|
|
5214
|
+
finishConnect(-ERRNO_CODES.ETIMEDOUT);
|
|
5215
|
+
}, timeout);
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
handleOpen = () => {
|
|
5219
|
+
finishConnect(0);
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
handleError = () => {
|
|
5223
|
+
finishConnect(-ERRNO_CODES.ECONNREFUSED);
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
handleClose = () => {
|
|
5227
|
+
finishConnect(-ERRNO_CODES.ECONNREFUSED);
|
|
5228
|
+
};
|
|
5168
5229
|
ws.addEventListener('open', handleOpen);
|
|
5169
5230
|
ws.addEventListener('error', handleError);
|
|
5170
5231
|
ws.addEventListener('close', handleClose);
|
|
@@ -7534,21 +7595,35 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
7534
7595
|
const SO_SNDTIMEO = 67;
|
|
7535
7596
|
const IPPROTO_TCP = 6;
|
|
7536
7597
|
const TCP_NODELAY = 1;
|
|
7598
|
+
if (
|
|
7599
|
+
level === SOL_SOCKET &&
|
|
7600
|
+
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
|
|
7601
|
+
) {
|
|
7602
|
+
const timeoutMs = PHPWASM.parseSocketTimeout(
|
|
7603
|
+
optionValuePtr,
|
|
7604
|
+
optionLen
|
|
7605
|
+
);
|
|
7606
|
+
if (timeoutMs === null) {
|
|
7607
|
+
return -1;
|
|
7608
|
+
}
|
|
7609
|
+
const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
|
|
7610
|
+
if (optionName === SO_RCVTIMEO) {
|
|
7611
|
+
timeouts.receive = timeoutMs;
|
|
7612
|
+
} else {
|
|
7613
|
+
timeouts.send = timeoutMs;
|
|
7614
|
+
}
|
|
7615
|
+
PHPWASM.socketTimeouts.set(socketd, timeouts);
|
|
7616
|
+
return 0;
|
|
7617
|
+
}
|
|
7537
7618
|
const isForwardable =
|
|
7538
7619
|
(level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
|
|
7539
7620
|
(level === IPPROTO_TCP && optionName === TCP_NODELAY);
|
|
7540
|
-
|
|
7541
|
-
level === SOL_SOCKET &&
|
|
7542
|
-
(optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
|
|
7543
|
-
if (!isForwardable && !isIgnorable) {
|
|
7621
|
+
if (!isForwardable) {
|
|
7544
7622
|
console.warn(
|
|
7545
7623
|
`Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
|
|
7546
7624
|
);
|
|
7547
7625
|
return -1;
|
|
7548
7626
|
}
|
|
7549
|
-
if (isIgnorable) {
|
|
7550
|
-
return 0;
|
|
7551
|
-
}
|
|
7552
7627
|
const ws = PHPWASM.getAllWebSockets(socketd)[0];
|
|
7553
7628
|
if (!ws) {
|
|
7554
7629
|
return -1;
|
|
@@ -8016,6 +8091,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8016
8091
|
_php_date_get_interface_ce,
|
|
8017
8092
|
_php_date_get_timezone_ce,
|
|
8018
8093
|
_get_timezone_info,
|
|
8094
|
+
_php_info_print_table_header,
|
|
8019
8095
|
_php_info_print_table_row,
|
|
8020
8096
|
_php_info_print_table_start,
|
|
8021
8097
|
_php_info_print_table_end,
|
|
@@ -8075,21 +8151,26 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8075
8151
|
_add_next_index_stringl,
|
|
8076
8152
|
_zend_register_internal_class_with_flags,
|
|
8077
8153
|
_zend_class_implements,
|
|
8154
|
+
_zend_register_internal_interface,
|
|
8155
|
+
_zend_is_callable,
|
|
8078
8156
|
_zend_fcall_info_init,
|
|
8079
8157
|
_zend_declare_typed_property,
|
|
8080
8158
|
_zend_try_assign_typed_ref_bool,
|
|
8081
8159
|
_zend_try_assign_typed_ref_long,
|
|
8082
8160
|
_zend_try_assign_typed_ref_str,
|
|
8083
8161
|
_zend_try_assign_typed_ref_arr,
|
|
8162
|
+
_zend_declare_property,
|
|
8084
8163
|
_zend_declare_typed_class_constant,
|
|
8085
8164
|
_zend_update_property,
|
|
8086
8165
|
_zend_replace_error_handling,
|
|
8087
8166
|
_zend_restore_error_handling,
|
|
8167
|
+
_zend_is_iterable,
|
|
8088
8168
|
_zend_add_attribute,
|
|
8089
8169
|
_zend_register_long_constant,
|
|
8090
8170
|
_zend_register_string_constant,
|
|
8091
8171
|
_zend_throw_exception,
|
|
8092
8172
|
_zend_throw_exception_ex,
|
|
8173
|
+
_zend_throw_exception_object,
|
|
8093
8174
|
_get_active_class_name,
|
|
8094
8175
|
_get_active_function_name,
|
|
8095
8176
|
_zend_get_executed_scope,
|
|
@@ -8097,6 +8178,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8097
8178
|
_zend_call_function,
|
|
8098
8179
|
_zend_call_known_function,
|
|
8099
8180
|
_zend_call_known_instance_method_with_2_params,
|
|
8181
|
+
_zend_lookup_class_ex,
|
|
8100
8182
|
_zend_execute,
|
|
8101
8183
|
_gc_possible_root,
|
|
8102
8184
|
_zend_get_gc_buffer_create,
|
|
@@ -8105,6 +8187,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8105
8187
|
__zend_hash_init,
|
|
8106
8188
|
__zend_new_array_0,
|
|
8107
8189
|
__zend_new_array,
|
|
8190
|
+
_zend_array_count,
|
|
8108
8191
|
_zend_hash_update,
|
|
8109
8192
|
_zend_hash_str_update,
|
|
8110
8193
|
_zend_hash_next_index_insert,
|
|
@@ -8113,7 +8196,12 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8113
8196
|
_zend_array_destroy,
|
|
8114
8197
|
_zend_hash_copy,
|
|
8115
8198
|
_zend_hash_index_find,
|
|
8199
|
+
_zend_hash_move_forward_ex,
|
|
8200
|
+
_zend_hash_get_current_key_zval_ex,
|
|
8201
|
+
_zend_hash_get_current_key_type_ex,
|
|
8202
|
+
_zend_hash_get_current_data_ex,
|
|
8116
8203
|
_zend_hash_sort_ex,
|
|
8204
|
+
_zend_do_implement_interface,
|
|
8117
8205
|
_zend_register_ini_entries_ex,
|
|
8118
8206
|
_zend_unregister_ini_entries_ex,
|
|
8119
8207
|
_zend_alter_ini_entry,
|
|
@@ -8125,10 +8213,14 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8125
8213
|
_zend_create_internal_iterator_zval,
|
|
8126
8214
|
_zend_iterator_init,
|
|
8127
8215
|
_zend_std_get_properties,
|
|
8216
|
+
_zend_std_read_property,
|
|
8217
|
+
_zend_std_write_property,
|
|
8128
8218
|
_zend_std_compare_objects,
|
|
8219
|
+
_zend_std_has_property,
|
|
8129
8220
|
_zend_objects_store_del,
|
|
8130
8221
|
_zend_object_std_init,
|
|
8131
8222
|
_zend_object_std_dtor,
|
|
8223
|
+
_zend_objects_new,
|
|
8132
8224
|
_zend_objects_clone_members,
|
|
8133
8225
|
_destroy_op_array,
|
|
8134
8226
|
_zend_destroy_static_vars,
|
|
@@ -8140,6 +8232,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8140
8232
|
__try_convert_to_string,
|
|
8141
8233
|
_zval_get_double_func,
|
|
8142
8234
|
_zval_get_string_func,
|
|
8235
|
+
_zend_is_true,
|
|
8143
8236
|
_numeric_compare_function,
|
|
8144
8237
|
_compare_function,
|
|
8145
8238
|
_instanceof_function_slow,
|
|
@@ -8158,6 +8251,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8158
8251
|
_zend_illegal_container_offset,
|
|
8159
8252
|
_zend_argument_count_error,
|
|
8160
8253
|
_zend_value_error,
|
|
8254
|
+
_strtoll,
|
|
8161
8255
|
_strlen,
|
|
8162
8256
|
_munmap,
|
|
8163
8257
|
_abort,
|
|
@@ -8166,31 +8260,44 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8166
8260
|
_malloc,
|
|
8167
8261
|
_snprintf,
|
|
8168
8262
|
_strchr,
|
|
8263
|
+
_clock_gettime,
|
|
8169
8264
|
_dlopen,
|
|
8170
8265
|
_dlsym,
|
|
8171
8266
|
_dlclose,
|
|
8172
8267
|
_strcmp,
|
|
8173
8268
|
_getenv,
|
|
8269
|
+
___wasm_setjmp,
|
|
8270
|
+
___wasm_setjmp_test,
|
|
8271
|
+
___wasm_longjmp,
|
|
8174
8272
|
_atoi,
|
|
8175
8273
|
___errno_location,
|
|
8176
8274
|
_strrchr,
|
|
8177
8275
|
_realloc,
|
|
8178
8276
|
_strcasecmp,
|
|
8179
8277
|
_memchr,
|
|
8278
|
+
_isalnum,
|
|
8180
8279
|
_fwrite,
|
|
8181
8280
|
_strncmp,
|
|
8182
8281
|
_tolower,
|
|
8183
8282
|
_strtok_r,
|
|
8283
|
+
_unlink,
|
|
8184
8284
|
_fileno,
|
|
8185
8285
|
_fread,
|
|
8186
8286
|
_fclose,
|
|
8187
8287
|
_strtoul,
|
|
8188
8288
|
_strstr,
|
|
8289
|
+
_write,
|
|
8189
8290
|
_close,
|
|
8291
|
+
_fseek,
|
|
8190
8292
|
_stat,
|
|
8191
8293
|
_gettimeofday,
|
|
8192
8294
|
_fopen,
|
|
8295
|
+
_getcwd,
|
|
8193
8296
|
_open,
|
|
8297
|
+
_rename,
|
|
8298
|
+
_mkdir,
|
|
8299
|
+
_rmdir,
|
|
8300
|
+
_opendir,
|
|
8194
8301
|
_strncpy,
|
|
8195
8302
|
_localtime_r,
|
|
8196
8303
|
_strtol,
|
|
@@ -8209,6 +8316,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8209
8316
|
_setlocale,
|
|
8210
8317
|
_wasm_popen,
|
|
8211
8318
|
_wasm_php_exec,
|
|
8319
|
+
_strerror_r,
|
|
8212
8320
|
_php_pollfd_for,
|
|
8213
8321
|
_htons,
|
|
8214
8322
|
_ntohs,
|
|
@@ -8223,9 +8331,14 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8223
8331
|
_expf,
|
|
8224
8332
|
_qsort,
|
|
8225
8333
|
_mmap,
|
|
8334
|
+
_writev,
|
|
8226
8335
|
_fgets,
|
|
8227
8336
|
_initgroups,
|
|
8228
8337
|
_atol,
|
|
8338
|
+
_closedir,
|
|
8339
|
+
_readdir,
|
|
8340
|
+
_posix_memalign,
|
|
8341
|
+
_ftell,
|
|
8229
8342
|
_wasm_read,
|
|
8230
8343
|
_feof,
|
|
8231
8344
|
_strncat,
|
|
@@ -8254,8 +8367,27 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8254
8367
|
_php_wasm_init,
|
|
8255
8368
|
_wasm_free,
|
|
8256
8369
|
_wasm_trace,
|
|
8370
|
+
_getentropy,
|
|
8371
|
+
_pthread_cond_signal,
|
|
8372
|
+
_pthread_cond_wait,
|
|
8373
|
+
_pthread_condattr_destroy,
|
|
8374
|
+
_pthread_condattr_init,
|
|
8375
|
+
_pthread_condattr_setclock,
|
|
8376
|
+
_pthread_mutex_trylock,
|
|
8377
|
+
_pthread_mutexattr_destroy,
|
|
8378
|
+
_pthread_mutexattr_init,
|
|
8379
|
+
_pthread_mutexattr_settype,
|
|
8380
|
+
_sched_yield,
|
|
8381
|
+
_sqlite3_auto_extension,
|
|
8382
|
+
_sqlite3_cancel_auto_extension,
|
|
8383
|
+
_pthread_mutex_init,
|
|
8384
|
+
_pthread_mutex_destroy,
|
|
8385
|
+
_pthread_mutex_lock,
|
|
8386
|
+
_pthread_mutex_unlock,
|
|
8257
8387
|
_rewind,
|
|
8258
8388
|
_modf,
|
|
8389
|
+
_pthread_cond_init,
|
|
8390
|
+
_pthread_cond_destroy,
|
|
8259
8391
|
___extenddftf2,
|
|
8260
8392
|
___letf2,
|
|
8261
8393
|
___floatunditf,
|
|
@@ -8264,6 +8396,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8264
8396
|
___cxa_atexit,
|
|
8265
8397
|
___dl_seterr,
|
|
8266
8398
|
__emscripten_find_dylib,
|
|
8399
|
+
_pthread_cond_timedwait,
|
|
8267
8400
|
_mbstowcs,
|
|
8268
8401
|
_emscripten_builtin_memalign,
|
|
8269
8402
|
__emscripten_timeout,
|
|
@@ -8288,6 +8421,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8288
8421
|
memory,
|
|
8289
8422
|
___stack_pointer,
|
|
8290
8423
|
__indirect_function_table,
|
|
8424
|
+
___c_longjmp,
|
|
8291
8425
|
wasmTable,
|
|
8292
8426
|
wasmMemory;
|
|
8293
8427
|
function assignWasmExports(wasmExports) {
|
|
@@ -8299,6 +8433,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8299
8433
|
wasmExports['php_date_get_timezone_ce'];
|
|
8300
8434
|
_get_timezone_info = Module['_get_timezone_info'] =
|
|
8301
8435
|
wasmExports['get_timezone_info'];
|
|
8436
|
+
_php_info_print_table_header = Module['_php_info_print_table_header'] =
|
|
8437
|
+
wasmExports['php_info_print_table_header'];
|
|
8302
8438
|
_php_info_print_table_row = Module['_php_info_print_table_row'] =
|
|
8303
8439
|
wasmExports['php_info_print_table_row'];
|
|
8304
8440
|
_php_info_print_table_start = Module['_php_info_print_table_start'] =
|
|
@@ -8413,6 +8549,11 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8413
8549
|
] = wasmExports['zend_register_internal_class_with_flags'];
|
|
8414
8550
|
_zend_class_implements = Module['_zend_class_implements'] =
|
|
8415
8551
|
wasmExports['zend_class_implements'];
|
|
8552
|
+
_zend_register_internal_interface = Module[
|
|
8553
|
+
'_zend_register_internal_interface'
|
|
8554
|
+
] = wasmExports['zend_register_internal_interface'];
|
|
8555
|
+
_zend_is_callable = Module['_zend_is_callable'] =
|
|
8556
|
+
wasmExports['zend_is_callable'];
|
|
8416
8557
|
_zend_fcall_info_init = Module['_zend_fcall_info_init'] =
|
|
8417
8558
|
wasmExports['zend_fcall_info_init'];
|
|
8418
8559
|
_zend_declare_typed_property = Module['_zend_declare_typed_property'] =
|
|
@@ -8429,6 +8570,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8429
8570
|
_zend_try_assign_typed_ref_arr = Module[
|
|
8430
8571
|
'_zend_try_assign_typed_ref_arr'
|
|
8431
8572
|
] = wasmExports['zend_try_assign_typed_ref_arr'];
|
|
8573
|
+
_zend_declare_property = Module['_zend_declare_property'] =
|
|
8574
|
+
wasmExports['zend_declare_property'];
|
|
8432
8575
|
_zend_declare_typed_class_constant = Module[
|
|
8433
8576
|
'_zend_declare_typed_class_constant'
|
|
8434
8577
|
] = wasmExports['zend_declare_typed_class_constant'];
|
|
@@ -8438,6 +8581,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8438
8581
|
wasmExports['zend_replace_error_handling'];
|
|
8439
8582
|
_zend_restore_error_handling = Module['_zend_restore_error_handling'] =
|
|
8440
8583
|
wasmExports['zend_restore_error_handling'];
|
|
8584
|
+
_zend_is_iterable = Module['_zend_is_iterable'] =
|
|
8585
|
+
wasmExports['zend_is_iterable'];
|
|
8441
8586
|
_zend_add_attribute = Module['_zend_add_attribute'] =
|
|
8442
8587
|
wasmExports['zend_add_attribute'];
|
|
8443
8588
|
_zend_register_long_constant = Module['_zend_register_long_constant'] =
|
|
@@ -8449,6 +8594,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8449
8594
|
wasmExports['zend_throw_exception'];
|
|
8450
8595
|
_zend_throw_exception_ex = Module['_zend_throw_exception_ex'] =
|
|
8451
8596
|
wasmExports['zend_throw_exception_ex'];
|
|
8597
|
+
_zend_throw_exception_object = Module['_zend_throw_exception_object'] =
|
|
8598
|
+
wasmExports['zend_throw_exception_object'];
|
|
8452
8599
|
_get_active_class_name = Module['_get_active_class_name'] =
|
|
8453
8600
|
wasmExports['get_active_class_name'];
|
|
8454
8601
|
_get_active_function_name = Module['_get_active_function_name'] =
|
|
@@ -8464,6 +8611,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8464
8611
|
_zend_call_known_instance_method_with_2_params = Module[
|
|
8465
8612
|
'_zend_call_known_instance_method_with_2_params'
|
|
8466
8613
|
] = wasmExports['zend_call_known_instance_method_with_2_params'];
|
|
8614
|
+
_zend_lookup_class_ex = Module['_zend_lookup_class_ex'] =
|
|
8615
|
+
wasmExports['zend_lookup_class_ex'];
|
|
8467
8616
|
_zend_execute = Module['_zend_execute'] = wasmExports['zend_execute'];
|
|
8468
8617
|
_gc_possible_root = Module['_gc_possible_root'] =
|
|
8469
8618
|
wasmExports['gc_possible_root'];
|
|
@@ -8479,6 +8628,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8479
8628
|
wasmExports['_zend_new_array_0'];
|
|
8480
8629
|
__zend_new_array = Module['__zend_new_array'] =
|
|
8481
8630
|
wasmExports['_zend_new_array'];
|
|
8631
|
+
_zend_array_count = Module['_zend_array_count'] =
|
|
8632
|
+
wasmExports['zend_array_count'];
|
|
8482
8633
|
_zend_hash_update = Module['_zend_hash_update'] =
|
|
8483
8634
|
wasmExports['zend_hash_update'];
|
|
8484
8635
|
_zend_hash_str_update = Module['_zend_hash_str_update'] =
|
|
@@ -8495,8 +8646,21 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8495
8646
|
wasmExports['zend_hash_copy'];
|
|
8496
8647
|
_zend_hash_index_find = Module['_zend_hash_index_find'] =
|
|
8497
8648
|
wasmExports['zend_hash_index_find'];
|
|
8649
|
+
_zend_hash_move_forward_ex = Module['_zend_hash_move_forward_ex'] =
|
|
8650
|
+
wasmExports['zend_hash_move_forward_ex'];
|
|
8651
|
+
_zend_hash_get_current_key_zval_ex = Module[
|
|
8652
|
+
'_zend_hash_get_current_key_zval_ex'
|
|
8653
|
+
] = wasmExports['zend_hash_get_current_key_zval_ex'];
|
|
8654
|
+
_zend_hash_get_current_key_type_ex = Module[
|
|
8655
|
+
'_zend_hash_get_current_key_type_ex'
|
|
8656
|
+
] = wasmExports['zend_hash_get_current_key_type_ex'];
|
|
8657
|
+
_zend_hash_get_current_data_ex = Module[
|
|
8658
|
+
'_zend_hash_get_current_data_ex'
|
|
8659
|
+
] = wasmExports['zend_hash_get_current_data_ex'];
|
|
8498
8660
|
_zend_hash_sort_ex = Module['_zend_hash_sort_ex'] =
|
|
8499
8661
|
wasmExports['zend_hash_sort_ex'];
|
|
8662
|
+
_zend_do_implement_interface = Module['_zend_do_implement_interface'] =
|
|
8663
|
+
wasmExports['zend_do_implement_interface'];
|
|
8500
8664
|
_zend_register_ini_entries_ex = Module[
|
|
8501
8665
|
'_zend_register_ini_entries_ex'
|
|
8502
8666
|
] = wasmExports['zend_register_ini_entries_ex'];
|
|
@@ -8521,14 +8685,22 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8521
8685
|
wasmExports['zend_iterator_init'];
|
|
8522
8686
|
_zend_std_get_properties = Module['_zend_std_get_properties'] =
|
|
8523
8687
|
wasmExports['zend_std_get_properties'];
|
|
8688
|
+
_zend_std_read_property = Module['_zend_std_read_property'] =
|
|
8689
|
+
wasmExports['zend_std_read_property'];
|
|
8690
|
+
_zend_std_write_property = Module['_zend_std_write_property'] =
|
|
8691
|
+
wasmExports['zend_std_write_property'];
|
|
8524
8692
|
_zend_std_compare_objects = Module['_zend_std_compare_objects'] =
|
|
8525
8693
|
wasmExports['zend_std_compare_objects'];
|
|
8694
|
+
_zend_std_has_property = Module['_zend_std_has_property'] =
|
|
8695
|
+
wasmExports['zend_std_has_property'];
|
|
8526
8696
|
_zend_objects_store_del = Module['_zend_objects_store_del'] =
|
|
8527
8697
|
wasmExports['zend_objects_store_del'];
|
|
8528
8698
|
_zend_object_std_init = Module['_zend_object_std_init'] =
|
|
8529
8699
|
wasmExports['zend_object_std_init'];
|
|
8530
8700
|
_zend_object_std_dtor = Module['_zend_object_std_dtor'] =
|
|
8531
8701
|
wasmExports['zend_object_std_dtor'];
|
|
8702
|
+
_zend_objects_new = Module['_zend_objects_new'] =
|
|
8703
|
+
wasmExports['zend_objects_new'];
|
|
8532
8704
|
_zend_objects_clone_members = Module['_zend_objects_clone_members'] =
|
|
8533
8705
|
wasmExports['zend_objects_clone_members'];
|
|
8534
8706
|
_destroy_op_array = Module['_destroy_op_array'] =
|
|
@@ -8551,6 +8723,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8551
8723
|
wasmExports['zval_get_double_func'];
|
|
8552
8724
|
_zval_get_string_func = Module['_zval_get_string_func'] =
|
|
8553
8725
|
wasmExports['zval_get_string_func'];
|
|
8726
|
+
_zend_is_true = Module['_zend_is_true'] = wasmExports['zend_is_true'];
|
|
8554
8727
|
_numeric_compare_function = Module['_numeric_compare_function'] =
|
|
8555
8728
|
wasmExports['numeric_compare_function'];
|
|
8556
8729
|
_compare_function = Module['_compare_function'] =
|
|
@@ -8584,6 +8757,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8584
8757
|
wasmExports['zend_argument_count_error'];
|
|
8585
8758
|
_zend_value_error = Module['_zend_value_error'] =
|
|
8586
8759
|
wasmExports['zend_value_error'];
|
|
8760
|
+
_strtoll = Module['_strtoll'] = wasmExports['strtoll'];
|
|
8587
8761
|
_strlen = Module['_strlen'] = wasmExports['strlen'];
|
|
8588
8762
|
_munmap = Module['_munmap'] = wasmExports['munmap'];
|
|
8589
8763
|
_abort = Module['_abort'] = wasmExports['abort'];
|
|
@@ -8595,11 +8769,19 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8595
8769
|
wasmExports['malloc'];
|
|
8596
8770
|
_snprintf = Module['_snprintf'] = wasmExports['snprintf'];
|
|
8597
8771
|
_strchr = Module['_strchr'] = wasmExports['strchr'];
|
|
8772
|
+
_clock_gettime = Module['_clock_gettime'] =
|
|
8773
|
+
wasmExports['clock_gettime'];
|
|
8598
8774
|
_dlopen = Module['_dlopen'] = wasmExports['dlopen'];
|
|
8599
8775
|
_dlsym = Module['_dlsym'] = wasmExports['dlsym'];
|
|
8600
8776
|
_dlclose = Module['_dlclose'] = wasmExports['dlclose'];
|
|
8601
8777
|
_strcmp = Module['_strcmp'] = wasmExports['strcmp'];
|
|
8602
8778
|
_getenv = Module['_getenv'] = wasmExports['getenv'];
|
|
8779
|
+
___wasm_setjmp = Module['___wasm_setjmp'] =
|
|
8780
|
+
wasmExports['__wasm_setjmp'];
|
|
8781
|
+
___wasm_setjmp_test = Module['___wasm_setjmp_test'] =
|
|
8782
|
+
wasmExports['__wasm_setjmp_test'];
|
|
8783
|
+
___wasm_longjmp = Module['___wasm_longjmp'] =
|
|
8784
|
+
wasmExports['__wasm_longjmp'];
|
|
8603
8785
|
_atoi = Module['_atoi'] = wasmExports['atoi'];
|
|
8604
8786
|
___errno_location = Module['___errno_location'] =
|
|
8605
8787
|
wasmExports['__errno_location'];
|
|
@@ -8607,20 +8789,29 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8607
8789
|
_realloc = Module['_realloc'] = wasmExports['realloc'];
|
|
8608
8790
|
_strcasecmp = Module['_strcasecmp'] = wasmExports['strcasecmp'];
|
|
8609
8791
|
_memchr = Module['_memchr'] = wasmExports['memchr'];
|
|
8792
|
+
_isalnum = Module['_isalnum'] = wasmExports['isalnum'];
|
|
8610
8793
|
_fwrite = Module['_fwrite'] = wasmExports['fwrite'];
|
|
8611
8794
|
_strncmp = Module['_strncmp'] = wasmExports['strncmp'];
|
|
8612
8795
|
_tolower = Module['_tolower'] = wasmExports['tolower'];
|
|
8613
8796
|
_strtok_r = Module['_strtok_r'] = wasmExports['strtok_r'];
|
|
8797
|
+
_unlink = Module['_unlink'] = wasmExports['unlink'];
|
|
8614
8798
|
_fileno = Module['_fileno'] = wasmExports['fileno'];
|
|
8615
8799
|
_fread = Module['_fread'] = wasmExports['fread'];
|
|
8616
8800
|
_fclose = Module['_fclose'] = wasmExports['fclose'];
|
|
8617
8801
|
_strtoul = Module['_strtoul'] = wasmExports['strtoul'];
|
|
8618
8802
|
_strstr = Module['_strstr'] = wasmExports['strstr'];
|
|
8803
|
+
_write = Module['_write'] = wasmExports['write'];
|
|
8619
8804
|
_close = Module['_close'] = wasmExports['close'];
|
|
8805
|
+
_fseek = Module['_fseek'] = wasmExports['fseek'];
|
|
8620
8806
|
_stat = Module['_stat'] = wasmExports['stat'];
|
|
8621
8807
|
_gettimeofday = Module['_gettimeofday'] = wasmExports['gettimeofday'];
|
|
8622
8808
|
_fopen = Module['_fopen'] = wasmExports['fopen'];
|
|
8809
|
+
_getcwd = Module['_getcwd'] = wasmExports['getcwd'];
|
|
8623
8810
|
_open = Module['_open'] = wasmExports['open'];
|
|
8811
|
+
_rename = Module['_rename'] = wasmExports['rename'];
|
|
8812
|
+
_mkdir = Module['_mkdir'] = wasmExports['mkdir'];
|
|
8813
|
+
_rmdir = Module['_rmdir'] = wasmExports['rmdir'];
|
|
8814
|
+
_opendir = Module['_opendir'] = wasmExports['opendir'];
|
|
8624
8815
|
_strncpy = Module['_strncpy'] = wasmExports['strncpy'];
|
|
8625
8816
|
_localtime_r = Module['_localtime_r'] = wasmExports['localtime_r'];
|
|
8626
8817
|
_strtol = Module['_strtol'] = wasmExports['strtol'];
|
|
@@ -8640,6 +8831,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8640
8831
|
_wasm_popen = Module['_wasm_popen'] = wasmExports['wasm_popen'];
|
|
8641
8832
|
_wasm_php_exec = Module['_wasm_php_exec'] =
|
|
8642
8833
|
wasmExports['wasm_php_exec'];
|
|
8834
|
+
_strerror_r = Module['_strerror_r'] = wasmExports['strerror_r'];
|
|
8643
8835
|
_php_pollfd_for = Module['_php_pollfd_for'] =
|
|
8644
8836
|
wasmExports['php_pollfd_for'];
|
|
8645
8837
|
_htons = wasmExports['htons'];
|
|
@@ -8655,9 +8847,15 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8655
8847
|
_expf = Module['_expf'] = wasmExports['expf'];
|
|
8656
8848
|
_qsort = Module['_qsort'] = wasmExports['qsort'];
|
|
8657
8849
|
_mmap = Module['_mmap'] = wasmExports['mmap'];
|
|
8850
|
+
_writev = Module['_writev'] = wasmExports['writev'];
|
|
8658
8851
|
_fgets = Module['_fgets'] = wasmExports['fgets'];
|
|
8659
8852
|
_initgroups = Module['_initgroups'] = wasmExports['initgroups'];
|
|
8660
8853
|
_atol = Module['_atol'] = wasmExports['atol'];
|
|
8854
|
+
_closedir = Module['_closedir'] = wasmExports['closedir'];
|
|
8855
|
+
_readdir = Module['_readdir'] = wasmExports['readdir'];
|
|
8856
|
+
_posix_memalign = Module['_posix_memalign'] =
|
|
8857
|
+
wasmExports['posix_memalign'];
|
|
8858
|
+
_ftell = Module['_ftell'] = wasmExports['ftell'];
|
|
8661
8859
|
_wasm_read = Module['_wasm_read'] = wasmExports['wasm_read'];
|
|
8662
8860
|
_feof = Module['_feof'] = wasmExports['feof'];
|
|
8663
8861
|
_strncat = Module['_strncat'] = wasmExports['strncat'];
|
|
@@ -8711,8 +8909,45 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8711
8909
|
Module['_wasm_free'] =
|
|
8712
8910
|
wasmExports['wasm_free'];
|
|
8713
8911
|
_wasm_trace = Module['_wasm_trace'] = wasmExports['wasm_trace'];
|
|
8912
|
+
_getentropy = Module['_getentropy'] = wasmExports['getentropy'];
|
|
8913
|
+
_pthread_cond_signal = Module['_pthread_cond_signal'] =
|
|
8914
|
+
wasmExports['pthread_cond_signal'];
|
|
8915
|
+
_pthread_cond_wait = Module['_pthread_cond_wait'] =
|
|
8916
|
+
wasmExports['pthread_cond_wait'];
|
|
8917
|
+
_pthread_condattr_destroy = Module['_pthread_condattr_destroy'] =
|
|
8918
|
+
wasmExports['pthread_condattr_destroy'];
|
|
8919
|
+
_pthread_condattr_init = Module['_pthread_condattr_init'] =
|
|
8920
|
+
wasmExports['pthread_condattr_init'];
|
|
8921
|
+
_pthread_condattr_setclock = Module['_pthread_condattr_setclock'] =
|
|
8922
|
+
wasmExports['pthread_condattr_setclock'];
|
|
8923
|
+
_pthread_mutex_trylock = Module['_pthread_mutex_trylock'] =
|
|
8924
|
+
wasmExports['pthread_mutex_trylock'];
|
|
8925
|
+
_pthread_mutexattr_destroy = Module['_pthread_mutexattr_destroy'] =
|
|
8926
|
+
wasmExports['pthread_mutexattr_destroy'];
|
|
8927
|
+
_pthread_mutexattr_init = Module['_pthread_mutexattr_init'] =
|
|
8928
|
+
wasmExports['pthread_mutexattr_init'];
|
|
8929
|
+
_pthread_mutexattr_settype = Module['_pthread_mutexattr_settype'] =
|
|
8930
|
+
wasmExports['pthread_mutexattr_settype'];
|
|
8931
|
+
_sched_yield = Module['_sched_yield'] = wasmExports['sched_yield'];
|
|
8932
|
+
_sqlite3_auto_extension = Module['_sqlite3_auto_extension'] =
|
|
8933
|
+
wasmExports['sqlite3_auto_extension'];
|
|
8934
|
+
_sqlite3_cancel_auto_extension = Module[
|
|
8935
|
+
'_sqlite3_cancel_auto_extension'
|
|
8936
|
+
] = wasmExports['sqlite3_cancel_auto_extension'];
|
|
8937
|
+
_pthread_mutex_init = Module['_pthread_mutex_init'] =
|
|
8938
|
+
wasmExports['pthread_mutex_init'];
|
|
8939
|
+
_pthread_mutex_destroy = Module['_pthread_mutex_destroy'] =
|
|
8940
|
+
wasmExports['pthread_mutex_destroy'];
|
|
8941
|
+
_pthread_mutex_lock = Module['_pthread_mutex_lock'] =
|
|
8942
|
+
wasmExports['pthread_mutex_lock'];
|
|
8943
|
+
_pthread_mutex_unlock = Module['_pthread_mutex_unlock'] =
|
|
8944
|
+
wasmExports['pthread_mutex_unlock'];
|
|
8714
8945
|
_rewind = Module['_rewind'] = wasmExports['rewind'];
|
|
8715
8946
|
_modf = Module['_modf'] = wasmExports['modf'];
|
|
8947
|
+
_pthread_cond_init = Module['_pthread_cond_init'] =
|
|
8948
|
+
wasmExports['pthread_cond_init'];
|
|
8949
|
+
_pthread_cond_destroy = Module['_pthread_cond_destroy'] =
|
|
8950
|
+
wasmExports['pthread_cond_destroy'];
|
|
8716
8951
|
___extenddftf2 = Module['___extenddftf2'] =
|
|
8717
8952
|
wasmExports['__extenddftf2'];
|
|
8718
8953
|
___letf2 = Module['___letf2'] = wasmExports['__letf2'];
|
|
@@ -8723,6 +8958,8 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8723
8958
|
___cxa_atexit = Module['___cxa_atexit'] = wasmExports['__cxa_atexit'];
|
|
8724
8959
|
___dl_seterr = wasmExports['__dl_seterr'];
|
|
8725
8960
|
__emscripten_find_dylib = wasmExports['_emscripten_find_dylib'];
|
|
8961
|
+
_pthread_cond_timedwait = Module['_pthread_cond_timedwait'] =
|
|
8962
|
+
wasmExports['pthread_cond_timedwait'];
|
|
8726
8963
|
_mbstowcs = Module['_mbstowcs'] = wasmExports['mbstowcs'];
|
|
8727
8964
|
_emscripten_builtin_memalign =
|
|
8728
8965
|
wasmExports['emscripten_builtin_memalign'];
|
|
@@ -8764,65 +9001,66 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
8764
9001
|
wasmExports['__stack_pointer'];
|
|
8765
9002
|
__indirect_function_table = wasmTable =
|
|
8766
9003
|
wasmExports['__indirect_function_table'];
|
|
9004
|
+
___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
|
|
8767
9005
|
}
|
|
8768
|
-
var _file_globals = (Module['_file_globals'] =
|
|
8769
|
-
var _sapi_module = (Module['_sapi_module'] =
|
|
8770
|
-
var _sapi_globals = (Module['_sapi_globals'] =
|
|
8771
|
-
var _compiler_globals = (Module['_compiler_globals'] =
|
|
8772
|
-
var _executor_globals = (Module['_executor_globals'] =
|
|
8773
|
-
var _zend_compile_string = (Module['_zend_compile_string'] =
|
|
8774
|
-
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] =
|
|
8775
|
-
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] =
|
|
8776
|
-
var _zend_ce_exception = (Module['_zend_ce_exception'] =
|
|
8777
|
-
var _zend_ce_throwable = (Module['_zend_ce_throwable'] =
|
|
9006
|
+
var _file_globals = (Module['_file_globals'] = 15500680);
|
|
9007
|
+
var _sapi_module = (Module['_sapi_module'] = 15388632);
|
|
9008
|
+
var _sapi_globals = (Module['_sapi_globals'] = 15388776);
|
|
9009
|
+
var _compiler_globals = (Module['_compiler_globals'] = 15503720);
|
|
9010
|
+
var _executor_globals = (Module['_executor_globals'] = 15504136);
|
|
9011
|
+
var _zend_compile_string = (Module['_zend_compile_string'] = 15505532);
|
|
9012
|
+
var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 15388124);
|
|
9013
|
+
var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 15388128);
|
|
9014
|
+
var _zend_ce_exception = (Module['_zend_ce_exception'] = 15501292);
|
|
9015
|
+
var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 15501288);
|
|
8778
9016
|
var _zend_ce_division_by_zero_error = (Module[
|
|
8779
9017
|
'_zend_ce_division_by_zero_error'
|
|
8780
|
-
] =
|
|
9018
|
+
] = 15501420);
|
|
8781
9019
|
var _zend_ce_unhandled_match_error = (Module[
|
|
8782
9020
|
'_zend_ce_unhandled_match_error'
|
|
8783
|
-
] =
|
|
8784
|
-
var _zend_empty_array = (Module['_zend_empty_array'] =
|
|
8785
|
-
var _zend_ce_traversable = (Module['_zend_ce_traversable'] =
|
|
8786
|
-
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] =
|
|
8787
|
-
var _zend_ce_iterator = (Module['_zend_ce_iterator'] =
|
|
8788
|
-
var _zend_ce_serializable = (Module['_zend_ce_serializable'] =
|
|
8789
|
-
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] =
|
|
8790
|
-
var _zend_ce_countable = (Module['_zend_ce_countable'] =
|
|
8791
|
-
var _zend_ce_stringable = (Module['_zend_ce_stringable'] =
|
|
8792
|
-
var _std_object_handlers = (Module['_std_object_handlers'] =
|
|
8793
|
-
var _zend_empty_string = (Module['_zend_empty_string'] =
|
|
8794
|
-
var _zend_known_strings = (Module['_zend_known_strings'] =
|
|
9021
|
+
] = 15501424);
|
|
9022
|
+
var _zend_empty_array = (Module['_zend_empty_array'] = 14885136);
|
|
9023
|
+
var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 15387996);
|
|
9024
|
+
var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 15388e3);
|
|
9025
|
+
var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 15388004);
|
|
9026
|
+
var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 15388008);
|
|
9027
|
+
var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 15388012);
|
|
9028
|
+
var _zend_ce_countable = (Module['_zend_ce_countable'] = 15388016);
|
|
9029
|
+
var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 15388020);
|
|
9030
|
+
var _std_object_handlers = (Module['_std_object_handlers'] = 14884624);
|
|
9031
|
+
var _zend_empty_string = (Module['_zend_empty_string'] = 15386512);
|
|
9032
|
+
var _zend_known_strings = (Module['_zend_known_strings'] = 15386516);
|
|
8795
9033
|
var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
|
|
8796
|
-
|
|
8797
|
-
var _zend_one_char_string = (Module['_zend_one_char_string'] =
|
|
9034
|
+
15386580);
|
|
9035
|
+
var _zend_one_char_string = (Module['_zend_one_char_string'] = 15386592);
|
|
8798
9036
|
var ___memory_base = (Module['___memory_base'] = 0);
|
|
8799
9037
|
var ___table_base = (Module['___table_base'] = 1);
|
|
8800
|
-
var _stdout = (Module['_stdout'] =
|
|
9038
|
+
var _stdout = (Module['_stdout'] = 15379696);
|
|
8801
9039
|
var __playground_zend_side_module_data_exports = (Module[
|
|
8802
9040
|
'__playground_zend_side_module_data_exports'
|
|
8803
|
-
] =
|
|
9041
|
+
] = 14885968);
|
|
8804
9042
|
var __playground_zend_side_module_function_exports = (Module[
|
|
8805
9043
|
'__playground_zend_side_module_function_exports'
|
|
8806
|
-
] =
|
|
8807
|
-
var _timezone = (Module['_timezone'] =
|
|
8808
|
-
var _tzname = (Module['_tzname'] =
|
|
8809
|
-
var ___heap_base =
|
|
9044
|
+
] = 14886064);
|
|
9045
|
+
var _timezone = (Module['_timezone'] = 15840816);
|
|
9046
|
+
var _tzname = (Module['_tzname'] = 15840824);
|
|
9047
|
+
var ___heap_base = 16903088;
|
|
8810
9048
|
var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
|
|
8811
|
-
|
|
9049
|
+
15854492);
|
|
8812
9050
|
var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
|
|
8813
9051
|
'__ZTVN10__cxxabiv120__si_class_type_infoE'
|
|
8814
|
-
] =
|
|
9052
|
+
] = 15379984);
|
|
8815
9053
|
var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
|
|
8816
9054
|
'__ZTVN10__cxxabiv117__class_type_infoE'
|
|
8817
|
-
] =
|
|
9055
|
+
] = 15379944);
|
|
8818
9056
|
var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
|
|
8819
9057
|
'__ZTVN10__cxxabiv121__vmi_class_type_infoE'
|
|
8820
|
-
] =
|
|
9058
|
+
] = 15380036);
|
|
8821
9059
|
var __ZTISt20bad_array_new_length = (Module[
|
|
8822
9060
|
'__ZTISt20bad_array_new_length'
|
|
8823
|
-
] =
|
|
8824
|
-
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] =
|
|
8825
|
-
var __ZTISt12length_error = (Module['__ZTISt12length_error'] =
|
|
9061
|
+
] = 15380156);
|
|
9062
|
+
var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 15380232);
|
|
9063
|
+
var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 15380252);
|
|
8826
9064
|
var wasmImports = {
|
|
8827
9065
|
__assert_fail: ___assert_fail,
|
|
8828
9066
|
__asyncjs__js_module_onMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/web-8-4",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.35",
|
|
4
4
|
"description": "PHP 8.4 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": {
|