@php-wasm/web-8-4 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_4.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import dependencyFilename from './8_4_21/php_8_4.wasm';
2
2
  export { dependencyFilename };
3
- export const dependenciesTotalSize = 22388434;
3
+ export const dependenciesTotalSize = 22388526;
4
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
@@ -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
  };
@@ -8149,6 +8138,7 @@ export function init(RuntimeName, PHPLoader) {
8149
8138
  _add_next_index_str,
8150
8139
  _add_next_index_string,
8151
8140
  _add_next_index_stringl,
8141
+ _zend_register_internal_class_ex,
8152
8142
  _zend_register_internal_class_with_flags,
8153
8143
  _zend_class_implements,
8154
8144
  _zend_register_internal_interface,
@@ -8161,6 +8151,7 @@ export function init(RuntimeName, PHPLoader) {
8161
8151
  _zend_try_assign_typed_ref_arr,
8162
8152
  _zend_declare_property,
8163
8153
  _zend_declare_typed_class_constant,
8154
+ _zend_declare_class_constant_ex,
8164
8155
  _zend_update_property,
8165
8156
  _zend_replace_error_handling,
8166
8157
  _zend_restore_error_handling,
@@ -8544,6 +8535,9 @@ export function init(RuntimeName, PHPLoader) {
8544
8535
  wasmExports['add_next_index_string'];
8545
8536
  _add_next_index_stringl = Module['_add_next_index_stringl'] =
8546
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'];
8547
8541
  _zend_register_internal_class_with_flags = Module[
8548
8542
  '_zend_register_internal_class_with_flags'
8549
8543
  ] = wasmExports['zend_register_internal_class_with_flags'];
@@ -8575,6 +8569,9 @@ export function init(RuntimeName, PHPLoader) {
8575
8569
  _zend_declare_typed_class_constant = Module[
8576
8570
  '_zend_declare_typed_class_constant'
8577
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'];
8578
8575
  _zend_update_property = Module['_zend_update_property'] =
8579
8576
  wasmExports['zend_update_property'];
8580
8577
  _zend_replace_error_handling = Module['_zend_replace_error_handling'] =
@@ -9003,64 +9000,64 @@ export function init(RuntimeName, PHPLoader) {
9003
9000
  wasmExports['__indirect_function_table'];
9004
9001
  ___c_longjmp = Module['___c_longjmp'] = wasmExports['__c_longjmp'];
9005
9002
  }
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);
9003
+ var _file_globals = (Module['_file_globals'] = 15500696);
9004
+ var _sapi_module = (Module['_sapi_module'] = 15388648);
9005
+ var _sapi_globals = (Module['_sapi_globals'] = 15388792);
9006
+ var _compiler_globals = (Module['_compiler_globals'] = 15503736);
9007
+ var _executor_globals = (Module['_executor_globals'] = 15504152);
9008
+ var _zend_compile_string = (Module['_zend_compile_string'] = 15505548);
9009
+ var _zend_ce_unit_enum = (Module['_zend_ce_unit_enum'] = 15388140);
9010
+ var _zend_ce_backed_enum = (Module['_zend_ce_backed_enum'] = 15388144);
9011
+ var _zend_ce_exception = (Module['_zend_ce_exception'] = 15501308);
9012
+ var _zend_ce_throwable = (Module['_zend_ce_throwable'] = 15501304);
9016
9013
  var _zend_ce_division_by_zero_error = (Module[
9017
9014
  '_zend_ce_division_by_zero_error'
9018
- ] = 15501420);
9015
+ ] = 15501436);
9019
9016
  var _zend_ce_unhandled_match_error = (Module[
9020
9017
  '_zend_ce_unhandled_match_error'
9021
- ] = 15501424);
9018
+ ] = 15501440);
9022
9019
  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);
9020
+ var _zend_ce_traversable = (Module['_zend_ce_traversable'] = 15388012);
9021
+ var _zend_ce_aggregate = (Module['_zend_ce_aggregate'] = 15388016);
9022
+ var _zend_ce_iterator = (Module['_zend_ce_iterator'] = 15388020);
9023
+ var _zend_ce_serializable = (Module['_zend_ce_serializable'] = 15388024);
9024
+ var _zend_ce_arrayaccess = (Module['_zend_ce_arrayaccess'] = 15388028);
9025
+ var _zend_ce_countable = (Module['_zend_ce_countable'] = 15388032);
9026
+ var _zend_ce_stringable = (Module['_zend_ce_stringable'] = 15388036);
9030
9027
  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);
9028
+ var _zend_empty_string = (Module['_zend_empty_string'] = 15386528);
9029
+ var _zend_known_strings = (Module['_zend_known_strings'] = 15386532);
9033
9030
  var _zend_string_init_interned = (Module['_zend_string_init_interned'] =
9034
- 15386580);
9035
- var _zend_one_char_string = (Module['_zend_one_char_string'] = 15386592);
9031
+ 15386596);
9032
+ var _zend_one_char_string = (Module['_zend_one_char_string'] = 15386608);
9036
9033
  var ___memory_base = (Module['___memory_base'] = 0);
9037
9034
  var ___table_base = (Module['___table_base'] = 1);
9038
- var _stdout = (Module['_stdout'] = 15379696);
9035
+ var _stdout = (Module['_stdout'] = 15379712);
9039
9036
  var __playground_zend_side_module_data_exports = (Module[
9040
9037
  '__playground_zend_side_module_data_exports'
9041
9038
  ] = 14885968);
9042
9039
  var __playground_zend_side_module_function_exports = (Module[
9043
9040
  '__playground_zend_side_module_function_exports'
9044
9041
  ] = 14886064);
9045
- var _timezone = (Module['_timezone'] = 15840816);
9046
- var _tzname = (Module['_tzname'] = 15840824);
9047
- var ___heap_base = 16903088;
9042
+ var _timezone = (Module['_timezone'] = 15840832);
9043
+ var _tzname = (Module['_tzname'] = 15840840);
9044
+ var ___heap_base = 16903104;
9048
9045
  var __ZNSt3__25ctypeIcE2idE = (Module['__ZNSt3__25ctypeIcE2idE'] =
9049
- 15854492);
9046
+ 15854508);
9050
9047
  var __ZTVN10__cxxabiv120__si_class_type_infoE = (Module[
9051
9048
  '__ZTVN10__cxxabiv120__si_class_type_infoE'
9052
- ] = 15379984);
9049
+ ] = 1538e4);
9053
9050
  var __ZTVN10__cxxabiv117__class_type_infoE = (Module[
9054
9051
  '__ZTVN10__cxxabiv117__class_type_infoE'
9055
- ] = 15379944);
9052
+ ] = 15379960);
9056
9053
  var __ZTVN10__cxxabiv121__vmi_class_type_infoE = (Module[
9057
9054
  '__ZTVN10__cxxabiv121__vmi_class_type_infoE'
9058
- ] = 15380036);
9055
+ ] = 15380052);
9059
9056
  var __ZTISt20bad_array_new_length = (Module[
9060
9057
  '__ZTISt20bad_array_new_length'
9061
- ] = 15380156);
9062
- var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 15380232);
9063
- var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 15380252);
9058
+ ] = 15380172);
9059
+ var __ZTVSt12length_error = (Module['__ZTVSt12length_error'] = 15380248);
9060
+ var __ZTISt12length_error = (Module['__ZTISt12length_error'] = 15380268);
9064
9061
  var wasmImports = {
9065
9062
  __assert_fail: ___assert_fail,
9066
9063
  __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.35",
3
+ "version": "3.1.38",
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": "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
  }