@php-wasm/web-8-5 3.1.34 → 3.1.36

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.
@@ -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
- const timeout = 3e4;
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
- const timeoutId = setTimeout(() => {
5262
- if (!resolved) {
5263
- resolved = true;
5264
- wakeUp(-ERRNO_CODES.ETIMEDOUT);
5265
- }
5266
- }, timeout);
5267
- const handleOpen = () => {
5268
- if (!resolved) {
5269
- resolved = true;
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
- const handleError = () => {
5277
- if (!resolved) {
5278
- resolved = true;
5279
- clearTimeout(timeoutId);
5280
- ws.removeEventListener('open', handleOpen);
5281
- ws.removeEventListener('close', handleClose);
5282
- wakeUp(-ERRNO_CODES.ECONNREFUSED);
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
- const handleClose = () => {
5323
+
5324
+ const finishConnect = (result) => {
5286
5325
  if (!resolved) {
5287
5326
  resolved = true;
5288
- clearTimeout(timeoutId);
5289
- ws.removeEventListener('open', handleOpen);
5290
- ws.removeEventListener('error', handleError);
5291
- wakeUp(-ERRNO_CODES.ECONNREFUSED);
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
- const isIgnorable =
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_5.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import dependencyFilename from './8_5_6/php_8_5.wasm';
2
2
  export { dependencyFilename };
3
- export const dependenciesTotalSize = 23527192;
3
+ export const dependenciesTotalSize = 23527352;
4
4
  const phpVersionString = '8.5.6';
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
@@ -4673,6 +4673,7 @@ export function init(RuntimeName, PHPLoader) {
4673
4673
  O_NONBLOCK: 2048,
4674
4674
  POLLHUP: 16,
4675
4675
  SETFL_MASK: 3072,
4676
+ socketTimeouts: new Map(),
4676
4677
  init: function () {
4677
4678
  if (PHPLoader.bindUserSpace) {
4678
4679
  addOnInit(() => {
@@ -5036,6 +5037,29 @@ export function init(RuntimeName, PHPLoader) {
5036
5037
  return [promise, cancel];
5037
5038
  },
5038
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
+ },
5039
5063
  spawnProcess: function (command, args, options) {
5040
5064
  if (Module['spawnProcess']) {
5041
5065
  const spawned = Module['spawnProcess'](command, args, {
@@ -5064,6 +5088,7 @@ export function init(RuntimeName, PHPLoader) {
5064
5088
  throw e;
5065
5089
  },
5066
5090
  shutdownSocket: function (socketd, how) {
5091
+ PHPWASM.socketTimeouts.delete(socketd);
5067
5092
  const sock = getSocketFromFD(socketd);
5068
5093
  const peer = Object.values(sock.peers)[0];
5069
5094
  if (!peer) {
@@ -5133,41 +5158,63 @@ export function init(RuntimeName, PHPLoader) {
5133
5158
  wakeUp(-ERRNO_CODES.ECONNREFUSED);
5134
5159
  return;
5135
5160
  }
5136
- const timeout = 3e4;
5161
+ const sendTimeout = PHPWASM.socketTimeouts.get(sockfd)?.send;
5162
+ const timeout = sendTimeout ?? 3e4;
5137
5163
  let resolved = false;
5138
- const timeoutId = setTimeout(() => {
5139
- if (!resolved) {
5140
- resolved = true;
5141
- wakeUp(-ERRNO_CODES.ETIMEDOUT);
5142
- }
5143
- }, timeout);
5144
- const handleOpen = () => {
5145
- if (!resolved) {
5146
- resolved = true;
5164
+ let timeoutId;
5165
+ let handleOpen;
5166
+ let handleError;
5167
+ let handleClose;
5168
+ const peer = PHPWASM.getAllPeers(sock).find(
5169
+ (candidate) => candidate.socket === ws
5170
+ );
5171
+ const cleanupConnectListeners = () => {
5172
+ if (typeof timeoutId !== 'undefined') {
5147
5173
  clearTimeout(timeoutId);
5148
- ws.removeEventListener('error', handleError);
5149
- ws.removeEventListener('close', handleClose);
5150
- wakeUp(0);
5151
5174
  }
5175
+ ws.removeEventListener('open', handleOpen);
5176
+ ws.removeEventListener('error', handleError);
5177
+ ws.removeEventListener('close', handleClose);
5152
5178
  };
5153
- const handleError = () => {
5154
- if (!resolved) {
5155
- resolved = true;
5156
- clearTimeout(timeoutId);
5157
- ws.removeEventListener('open', handleOpen);
5158
- ws.removeEventListener('close', handleClose);
5159
- wakeUp(-ERRNO_CODES.ECONNREFUSED);
5179
+ const cleanupFailedConnect = (errno) => {
5180
+ try {
5181
+ if (
5182
+ ws.readyState !== ws.CLOSING &&
5183
+ ws.readyState !== ws.CLOSED
5184
+ ) {
5185
+ ws.close();
5186
+ }
5187
+ } catch (e) {}
5188
+ if (peer) {
5189
+ SOCKFS.websocket_sock_ops.removePeer(sock, peer);
5160
5190
  }
5191
+ sock.connecting = false;
5192
+ sock.error = errno;
5161
5193
  };
5162
- const handleClose = () => {
5194
+ const finishConnect = (result) => {
5163
5195
  if (!resolved) {
5164
5196
  resolved = true;
5165
- clearTimeout(timeoutId);
5166
- ws.removeEventListener('open', handleOpen);
5167
- ws.removeEventListener('error', handleError);
5168
- wakeUp(-ERRNO_CODES.ECONNREFUSED);
5197
+ cleanupConnectListeners();
5198
+ if (result < 0) {
5199
+ cleanupFailedConnect(-result);
5200
+ }
5201
+ wakeUp(result);
5169
5202
  }
5170
5203
  };
5204
+ if (timeout > 0) {
5205
+ timeoutId = setTimeout(() => {
5206
+ finishConnect(-ERRNO_CODES.ETIMEDOUT);
5207
+ }, timeout);
5208
+ }
5209
+ handleOpen = () => {
5210
+ finishConnect(0);
5211
+ };
5212
+ handleError = () => {
5213
+ finishConnect(-ERRNO_CODES.ECONNREFUSED);
5214
+ };
5215
+ handleClose = () => {
5216
+ finishConnect(-ERRNO_CODES.ECONNREFUSED);
5217
+ };
5171
5218
  ws.addEventListener('open', handleOpen);
5172
5219
  ws.addEventListener('error', handleError);
5173
5220
  ws.addEventListener('close', handleClose);
@@ -7537,21 +7584,35 @@ export function init(RuntimeName, PHPLoader) {
7537
7584
  const SO_SNDTIMEO = 67;
7538
7585
  const IPPROTO_TCP = 6;
7539
7586
  const TCP_NODELAY = 1;
7587
+ if (
7588
+ level === SOL_SOCKET &&
7589
+ (optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO)
7590
+ ) {
7591
+ const timeoutMs = PHPWASM.parseSocketTimeout(
7592
+ optionValuePtr,
7593
+ optionLen
7594
+ );
7595
+ if (timeoutMs === null) {
7596
+ return -1;
7597
+ }
7598
+ const timeouts = PHPWASM.socketTimeouts.get(socketd) || {};
7599
+ if (optionName === SO_RCVTIMEO) {
7600
+ timeouts.receive = timeoutMs;
7601
+ } else {
7602
+ timeouts.send = timeoutMs;
7603
+ }
7604
+ PHPWASM.socketTimeouts.set(socketd, timeouts);
7605
+ return 0;
7606
+ }
7540
7607
  const isForwardable =
7541
7608
  (level === SOL_SOCKET && optionName === SO_KEEPALIVE) ||
7542
7609
  (level === IPPROTO_TCP && optionName === TCP_NODELAY);
7543
- const isIgnorable =
7544
- level === SOL_SOCKET &&
7545
- (optionName === SO_RCVTIMEO || optionName === SO_SNDTIMEO);
7546
- if (!isForwardable && !isIgnorable) {
7610
+ if (!isForwardable) {
7547
7611
  console.warn(
7548
7612
  `Unsupported socket option: ${level}, ${optionName}, ${optionValue}`
7549
7613
  );
7550
7614
  return -1;
7551
7615
  }
7552
- if (isIgnorable) {
7553
- return 0;
7554
- }
7555
7616
  const ws = PHPWASM.getAllWebSockets(socketd)[0];
7556
7617
  if (!ws) {
7557
7618
  return -1;
@@ -8076,6 +8137,7 @@ export function init(RuntimeName, PHPLoader) {
8076
8137
  _add_next_index_str,
8077
8138
  _add_next_index_string,
8078
8139
  _add_next_index_stringl,
8140
+ _zend_register_internal_class_ex,
8079
8141
  _zend_register_internal_class_with_flags,
8080
8142
  _zend_class_implements,
8081
8143
  _zend_register_internal_interface,
@@ -8088,6 +8150,7 @@ export function init(RuntimeName, PHPLoader) {
8088
8150
  _zend_try_assign_typed_ref_arr,
8089
8151
  _zend_declare_property,
8090
8152
  _zend_declare_typed_class_constant,
8153
+ _zend_declare_class_constant_ex,
8091
8154
  _zend_update_property,
8092
8155
  _zend_is_iterable,
8093
8156
  _zend_add_attribute,
@@ -8100,6 +8163,7 @@ export function init(RuntimeName, PHPLoader) {
8100
8163
  _get_active_class_name,
8101
8164
  _get_active_function_or_method_name,
8102
8165
  _zend_get_executed_scope,
8166
+ __call_user_function_impl,
8103
8167
  _zend_call_function,
8104
8168
  _zend_call_known_function,
8105
8169
  _zend_call_known_instance_method_with_2_params,
@@ -8471,6 +8535,9 @@ export function init(RuntimeName, PHPLoader) {
8471
8535
  wasmExports['add_next_index_string'];
8472
8536
  _add_next_index_stringl = Module['_add_next_index_stringl'] =
8473
8537
  wasmExports['add_next_index_stringl'];
8538
+ _zend_register_internal_class_ex = Module[
8539
+ '_zend_register_internal_class_ex'
8540
+ ] = wasmExports['zend_register_internal_class_ex'];
8474
8541
  _zend_register_internal_class_with_flags = Module[
8475
8542
  '_zend_register_internal_class_with_flags'
8476
8543
  ] = wasmExports['zend_register_internal_class_with_flags'];
@@ -8502,6 +8569,9 @@ export function init(RuntimeName, PHPLoader) {
8502
8569
  _zend_declare_typed_class_constant = Module[
8503
8570
  '_zend_declare_typed_class_constant'
8504
8571
  ] = wasmExports['zend_declare_typed_class_constant'];
8572
+ _zend_declare_class_constant_ex = Module[
8573
+ '_zend_declare_class_constant_ex'
8574
+ ] = wasmExports['zend_declare_class_constant_ex'];
8505
8575
  _zend_update_property = Module['_zend_update_property'] =
8506
8576
  wasmExports['zend_update_property'];
8507
8577
  _zend_is_iterable = Module['_zend_is_iterable'] =
@@ -8528,6 +8598,8 @@ export function init(RuntimeName, PHPLoader) {
8528
8598
  ] = wasmExports['get_active_function_or_method_name'];
8529
8599
  _zend_get_executed_scope = Module['_zend_get_executed_scope'] =
8530
8600
  wasmExports['zend_get_executed_scope'];
8601
+ __call_user_function_impl = Module['__call_user_function_impl'] =
8602
+ wasmExports['_call_user_function_impl'];
8531
8603
  _zend_call_function = Module['_zend_call_function'] =
8532
8604
  wasmExports['zend_call_function'];
8533
8605
  _zend_call_known_function = Module['_zend_call_known_function'] =
@@ -8937,64 +9009,64 @@ export function init(RuntimeName, PHPLoader) {
8937
9009
  wasmExports['__indirect_function_table'];
8938
9010
  ___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
8939
9011
  }
8940
- var _file_globals = (Module['_file_globals'] = 18125344);
8941
- var _sapi_module = (Module['_sapi_module'] = 18012272);
8942
- var _sapi_globals = (Module['_sapi_globals'] = 18012424);
8943
- var _compiler_globals = (Module['_compiler_globals'] = 18129416);
8944
- var _executor_globals = (Module['_executor_globals'] = 18129832);
8945
- var _zend_compile_string = (Module['_zend_compile_string'] = 18131252);
8946
- var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 18011968);
8947
- var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 18011972);
8948
- var _zend_ce_exception = (Module['_zend_ce_exception'] = 18125852);
8949
- var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 18125856);
9012
+ var _file_globals = (Module['_file_globals'] = 18125360);
9013
+ var _sapi_module = (Module['_sapi_module'] = 18012288);
9014
+ var _sapi_globals = (Module['_sapi_globals'] = 18012440);
9015
+ var _compiler_globals = (Module['_compiler_globals'] = 18129432);
9016
+ var _executor_globals = (Module['_executor_globals'] = 18129848);
9017
+ var _zend_compile_string = (Module['_zend_compile_string'] = 18131268);
9018
+ var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 18011984);
9019
+ var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 18011988);
9020
+ var _zend_ce_exception = (Module['_zend_ce_exception'] = 18125868);
9021
+ var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 18125872);
8950
9022
  var _zend_ce_division_by_zero_error = (Module[
8951
9023
  '_zend_ce_division_by_zero_error'
8952
- ] = 18125988);
9024
+ ] = 18126004);
8953
9025
  var _zend_ce_unhandled_match_error = (Module[
8954
9026
  '_zend_ce_unhandled_match_error'
8955
- ] = 18125992);
9027
+ ] = 18126008);
8956
9028
  var _zend_empty_array = (Module['_zend_empty_array'] = 17508800);
8957
- var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 18011628);
8958
- var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 18011632);
8959
- var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 18011636);
8960
- var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 18011640);
8961
- var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 18011644);
8962
- var _zend_ce_countable = (Module['_zend_ce_countable'] = 18011648);
8963
- var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 18011652);
9029
+ var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 18011644);
9030
+ var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 18011648);
9031
+ var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 18011652);
9032
+ var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 18011656);
9033
+ var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 18011660);
9034
+ var _zend_ce_countable = (Module['_zend_ce_countable'] = 18011664);
9035
+ var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 18011668);
8964
9036
  var _std_object_handlers = (Module['_std_object_handlers'] = 17492192);
8965
- var _zend_empty_string = (Module['_zend_empty_string'] = 18128180);
8966
- var _zend_known_strings = (Module['_zend_known_strings'] = 18128184);
9037
+ var _zend_empty_string = (Module['_zend_empty_string'] = 18128196);
9038
+ var _zend_known_strings = (Module['_zend_known_strings'] = 18128200);
8967
9039
  var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
8968
- 18128252);
8969
- var _zend_one_char_string = (Module['_zend_one_char_string'] = 18128272);
9040
+ 18128268);
9041
+ var _zend_one_char_string = (Module['_zend_one_char_string'] = 18128288);
8970
9042
  var ___memory_base = (Module['___memory_base'] = 0);
8971
9043
  var ___table_base = (Module['___table_base'] = 1);
8972
- var _stdout = (Module['_stdout'] = 18004224);
9044
+ var _stdout = (Module['_stdout'] = 18004240);
8973
9045
  var __playground_zend_side_module_data_exports = (Module[
8974
9046
  '__playground_zend_side_module_data_exports'
8975
9047
  ] = 17510512);
8976
9048
  var __playground_zend_side_module_function_exports = (Module[
8977
9049
  '__playground_zend_side_module_function_exports'
8978
9050
  ] = 17510608);
8979
- var _timezone = (Module['_timezone'] = 18466528);
8980
- var _tzname = (Module['_tzname'] = 18466536);
8981
- var ___heap_base = 19528800;
9051
+ var _timezone = (Module['_timezone'] = 18466544);
9052
+ var _tzname = (Module['_tzname'] = 18466552);
9053
+ var ___heap_base = 19528816;
8982
9054
  var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
8983
- 18480204);
9055
+ 18480220);
8984
9056
  var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
8985
9057
  '__ZTVN10__cxxabiv120__si_class_type_infoE'
8986
- ] = 18004512);
9058
+ ] = 18004528);
8987
9059
  var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
8988
9060
  '__ZTVN10__cxxabiv117__class_type_infoE'
8989
- ] = 18004472);
9061
+ ] = 18004488);
8990
9062
  var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
8991
9063
  '__ZTVN10__cxxabiv121__vmi_class_type_infoE'
8992
- ] = 18004564);
9064
+ ] = 18004580);
8993
9065
  var __ZTISt20bad_array_new_length = (Module[
8994
9066
  '__ZTISt20bad_array_new_length'
8995
- ] = 18004684);
8996
- var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 18004760);
8997
- var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 18004780);
9067
+ ] = 18004700);
9068
+ var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 18004776);
9069
+ var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 18004796);
8998
9070
  var wasmImports = {
8999
9071
  __assert_fail: ___assert_fail,
9000
9072
  __asyncjs__js_module_onMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/web-8-5",
3
- "version": "3.1.34",
3
+ "version": "3.1.36",
4
4
  "description": "PHP 8.5 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": "86daccc84fe31900eb57c4c8e1c3ba21a7ae8d13",
38
+ "gitHead": "371f4fd6f9d56af6fb35b6c2cf0267edaea83755",
39
39
  "dependencies": {
40
40
  "wasm-feature-detect": "1.8.0",
41
- "@php-wasm/universal": "3.1.34"
41
+ "@php-wasm/universal": "3.1.36"
42
42
  },
43
43
  "packageManager": "npm@10.9.2",
44
44
  "overrides": {