@php-wasm/web-8-5 3.1.35 → 3.1.38

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.
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,7 +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
+ socketTimeouts: new Map(),
4677
4677
  init: function () {
4678
4678
  if (PHPLoader.bindUserSpace) {
4679
4679
  addOnInit(() => {
@@ -5158,8 +5158,6 @@ export function init(RuntimeName, PHPLoader) {
5158
5158
  wakeUp(-ERRNO_CODES.ECONNREFUSED);
5159
5159
  return;
5160
5160
  }
5161
- // Wait for the connection to be established. A zero timeval
5162
- // disables the timeout, matching SO_SNDTIMEO semantics.
5163
5161
  const sendTimeout = PHPWASM.socketTimeouts.get(sockfd)?.send;
5164
5162
  const timeout = sendTimeout ?? 3e4;
5165
5163
  let resolved = false;
@@ -5170,7 +5168,6 @@ export function init(RuntimeName, PHPLoader) {
5170
5168
  const peer = PHPWASM.getAllPeers(sock).find(
5171
5169
  (candidate) => candidate.socket === ws
5172
5170
  );
5173
-
5174
5171
  const cleanupConnectListeners = () => {
5175
5172
  if (typeof timeoutId !== 'undefined') {
5176
5173
  clearTimeout(timeoutId);
@@ -5179,7 +5176,6 @@ export function init(RuntimeName, PHPLoader) {
5179
5176
  ws.removeEventListener('error', handleError);
5180
5177
  ws.removeEventListener('close', handleClose);
5181
5178
  };
5182
-
5183
5179
  const cleanupFailedConnect = (errno) => {
5184
5180
  try {
5185
5181
  if (
@@ -5188,16 +5184,13 @@ export function init(RuntimeName, PHPLoader) {
5188
5184
  ) {
5189
5185
  ws.close();
5190
5186
  }
5191
- } catch (e) {
5192
- // Ignore close errors on an already-failed connect.
5193
- }
5187
+ } catch (e) {}
5194
5188
  if (peer) {
5195
5189
  SOCKFS.websocket_sock_ops.removePeer(sock, peer);
5196
5190
  }
5197
5191
  sock.connecting = false;
5198
5192
  sock.error = errno;
5199
5193
  };
5200
-
5201
5194
  const finishConnect = (result) => {
5202
5195
  if (!resolved) {
5203
5196
  resolved = true;
@@ -5208,21 +5201,17 @@ export function init(RuntimeName, PHPLoader) {
5208
5201
  wakeUp(result);
5209
5202
  }
5210
5203
  };
5211
-
5212
5204
  if (timeout > 0) {
5213
5205
  timeoutId = setTimeout(() => {
5214
5206
  finishConnect(-ERRNO_CODES.ETIMEDOUT);
5215
5207
  }, timeout);
5216
5208
  }
5217
-
5218
5209
  handleOpen = () => {
5219
5210
  finishConnect(0);
5220
5211
  };
5221
-
5222
5212
  handleError = () => {
5223
5213
  finishConnect(-ERRNO_CODES.ECONNREFUSED);
5224
5214
  };
5225
-
5226
5215
  handleClose = () => {
5227
5216
  finishConnect(-ERRNO_CODES.ECONNREFUSED);
5228
5217
  };
@@ -8148,6 +8137,7 @@ export function init(RuntimeName, PHPLoader) {
8148
8137
  _add_next_index_str,
8149
8138
  _add_next_index_string,
8150
8139
  _add_next_index_stringl,
8140
+ _zend_register_internal_class_ex,
8151
8141
  _zend_register_internal_class_with_flags,
8152
8142
  _zend_class_implements,
8153
8143
  _zend_register_internal_interface,
@@ -8160,6 +8150,7 @@ export function init(RuntimeName, PHPLoader) {
8160
8150
  _zend_try_assign_typed_ref_arr,
8161
8151
  _zend_declare_property,
8162
8152
  _zend_declare_typed_class_constant,
8153
+ _zend_declare_class_constant_ex,
8163
8154
  _zend_update_property,
8164
8155
  _zend_is_iterable,
8165
8156
  _zend_add_attribute,
@@ -8172,6 +8163,7 @@ export function init(RuntimeName, PHPLoader) {
8172
8163
  _get_active_class_name,
8173
8164
  _get_active_function_or_method_name,
8174
8165
  _zend_get_executed_scope,
8166
+ __call_user_function_impl,
8175
8167
  _zend_call_function,
8176
8168
  _zend_call_known_function,
8177
8169
  _zend_call_known_instance_method_with_2_params,
@@ -8543,6 +8535,9 @@ export function init(RuntimeName, PHPLoader) {
8543
8535
  wasmExports['add_next_index_string'];
8544
8536
  _add_next_index_stringl = Module['_add_next_index_stringl'] =
8545
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'];
8546
8541
  _zend_register_internal_class_with_flags = Module[
8547
8542
  '_zend_register_internal_class_with_flags'
8548
8543
  ] = wasmExports['zend_register_internal_class_with_flags'];
@@ -8574,6 +8569,9 @@ export function init(RuntimeName, PHPLoader) {
8574
8569
  _zend_declare_typed_class_constant = Module[
8575
8570
  '_zend_declare_typed_class_constant'
8576
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'];
8577
8575
  _zend_update_property = Module['_zend_update_property'] =
8578
8576
  wasmExports['zend_update_property'];
8579
8577
  _zend_is_iterable = Module['_zend_is_iterable'] =
@@ -8600,6 +8598,8 @@ export function init(RuntimeName, PHPLoader) {
8600
8598
  ] = wasmExports['get_active_function_or_method_name'];
8601
8599
  _zend_get_executed_scope = Module['_zend_get_executed_scope'] =
8602
8600
  wasmExports['zend_get_executed_scope'];
8601
+ __call_user_function_impl = Module['__call_user_function_impl'] =
8602
+ wasmExports['_call_user_function_impl'];
8603
8603
  _zend_call_function = Module['_zend_call_function'] =
8604
8604
  wasmExports['zend_call_function'];
8605
8605
  _zend_call_known_function = Module['_zend_call_known_function'] =
@@ -9009,64 +9009,64 @@ export function init(RuntimeName, PHPLoader) {
9009
9009
  wasmExports['__indirect_function_table'];
9010
9010
  ___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
9011
9011
  }
9012
- var _file_globals = (Module['_file_globals'] = 18125344);
9013
- var _sapi_module = (Module['_sapi_module'] = 18012272);
9014
- var _sapi_globals = (Module['_sapi_globals'] = 18012424);
9015
- var _compiler_globals = (Module['_compiler_globals'] = 18129416);
9016
- var _executor_globals = (Module['_executor_globals'] = 18129832);
9017
- var _zend_compile_string = (Module['_zend_compile_string'] = 18131252);
9018
- var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 18011968);
9019
- var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 18011972);
9020
- var _zend_ce_exception = (Module['_zend_ce_exception'] = 18125852);
9021
- 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);
9022
9022
  var _zend_ce_division_by_zero_error = (Module[
9023
9023
  '_zend_ce_division_by_zero_error'
9024
- ] = 18125988);
9024
+ ] = 18126004);
9025
9025
  var _zend_ce_unhandled_match_error = (Module[
9026
9026
  '_zend_ce_unhandled_match_error'
9027
- ] = 18125992);
9027
+ ] = 18126008);
9028
9028
  var _zend_empty_array = (Module['_zend_empty_array'] = 17508800);
9029
- var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 18011628);
9030
- var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 18011632);
9031
- var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 18011636);
9032
- var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 18011640);
9033
- var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 18011644);
9034
- var _zend_ce_countable = (Module['_zend_ce_countable'] = 18011648);
9035
- 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);
9036
9036
  var _std_object_handlers = (Module['_std_object_handlers'] = 17492192);
9037
- var _zend_empty_string = (Module['_zend_empty_string'] = 18128180);
9038
- 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);
9039
9039
  var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
9040
- 18128252);
9041
- 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);
9042
9042
  var ___memory_base = (Module['___memory_base'] = 0);
9043
9043
  var ___table_base = (Module['___table_base'] = 1);
9044
- var _stdout = (Module['_stdout'] = 18004224);
9044
+ var _stdout = (Module['_stdout'] = 18004240);
9045
9045
  var __playground_zend_side_module_data_exports = (Module[
9046
9046
  '__playground_zend_side_module_data_exports'
9047
9047
  ] = 17510512);
9048
9048
  var __playground_zend_side_module_function_exports = (Module[
9049
9049
  '__playground_zend_side_module_function_exports'
9050
9050
  ] = 17510608);
9051
- var _timezone = (Module['_timezone'] = 18466528);
9052
- var _tzname = (Module['_tzname'] = 18466536);
9053
- var ___heap_base = 19528800;
9051
+ var _timezone = (Module['_timezone'] = 18466544);
9052
+ var _tzname = (Module['_tzname'] = 18466552);
9053
+ var ___heap_base = 19528816;
9054
9054
  var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
9055
- 18480204);
9055
+ 18480220);
9056
9056
  var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
9057
9057
  '__ZTVN10__cxxabiv120__si_class_type_infoE'
9058
- ] = 18004512);
9058
+ ] = 18004528);
9059
9059
  var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
9060
9060
  '__ZTVN10__cxxabiv117__class_type_infoE'
9061
- ] = 18004472);
9061
+ ] = 18004488);
9062
9062
  var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
9063
9063
  '__ZTVN10__cxxabiv121__vmi_class_type_infoE'
9064
- ] = 18004564);
9064
+ ] = 18004580);
9065
9065
  var __ZTISt20bad_array_new_length = (Module[
9066
9066
  '__ZTISt20bad_array_new_length'
9067
- ] = 18004684);
9068
- var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 18004760);
9069
- 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);
9070
9070
  var wasmImports = {
9071
9071
  __assert_fail: ___assert_fail,
9072
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.35",
3
+ "version": "3.1.38",
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": "9d29b73246e12465902d8ce42c0fe747125bc69a",
38
+ "gitHead": "2850a2a6f512e68e68407f4a9426dad705b426f0",
39
39
  "dependencies": {
40
40
  "wasm-feature-detect": "1.8.0",
41
- "@php-wasm/universal": "3.1.35"
41
+ "@php-wasm/universal": "3.1.38"
42
42
  },
43
43
  "packageManager": "npm@10.9.2",
44
44
  "overrides": {
@@ -51,6 +51,7 @@
51
51
  "form-data": "^4.0.4",
52
52
  "lodash": "^4.17.23",
53
53
  "glob": "^9.3.0",
54
- "webpackbar": "^7.0.0"
54
+ "webpackbar": "^7.0.0",
55
+ "ws": "8.21.0"
55
56
  }
56
57
  }