cwresdev 0.1.0

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.
Files changed (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/bin/cwrespro.js +64 -0
  4. package/package.json +47 -0
  5. package/src/client/reload-client.js +40 -0
  6. package/src/config.js +211 -0
  7. package/src/index.js +19 -0
  8. package/src/injector.js +32 -0
  9. package/src/php.js +114 -0
  10. package/src/proxy.js +91 -0
  11. package/src/server.js +334 -0
  12. package/vendor/php/windows/README.md +140 -0
  13. package/vendor/php/windows/brotlicommon.dll +0 -0
  14. package/vendor/php/windows/brotlidec.dll +0 -0
  15. package/vendor/php/windows/deplister.exe +0 -0
  16. package/vendor/php/windows/dev/php8.lib +0 -0
  17. package/vendor/php/windows/ext/php_bz2.dll +0 -0
  18. package/vendor/php/windows/ext/php_com_dotnet.dll +0 -0
  19. package/vendor/php/windows/ext/php_curl.dll +0 -0
  20. package/vendor/php/windows/ext/php_dba.dll +0 -0
  21. package/vendor/php/windows/ext/php_dl_test.dll +0 -0
  22. package/vendor/php/windows/ext/php_enchant.dll +0 -0
  23. package/vendor/php/windows/ext/php_exif.dll +0 -0
  24. package/vendor/php/windows/ext/php_ffi.dll +0 -0
  25. package/vendor/php/windows/ext/php_fileinfo.dll +0 -0
  26. package/vendor/php/windows/ext/php_ftp.dll +0 -0
  27. package/vendor/php/windows/ext/php_gd.dll +0 -0
  28. package/vendor/php/windows/ext/php_gettext.dll +0 -0
  29. package/vendor/php/windows/ext/php_gmp.dll +0 -0
  30. package/vendor/php/windows/ext/php_intl.dll +0 -0
  31. package/vendor/php/windows/ext/php_ldap.dll +0 -0
  32. package/vendor/php/windows/ext/php_mbstring.dll +0 -0
  33. package/vendor/php/windows/ext/php_mysqli.dll +0 -0
  34. package/vendor/php/windows/ext/php_odbc.dll +0 -0
  35. package/vendor/php/windows/ext/php_opcache.dll +0 -0
  36. package/vendor/php/windows/ext/php_openssl.dll +0 -0
  37. package/vendor/php/windows/ext/php_pdo_firebird.dll +0 -0
  38. package/vendor/php/windows/ext/php_pdo_mysql.dll +0 -0
  39. package/vendor/php/windows/ext/php_pdo_odbc.dll +0 -0
  40. package/vendor/php/windows/ext/php_pdo_pgsql.dll +0 -0
  41. package/vendor/php/windows/ext/php_pdo_sqlite.dll +0 -0
  42. package/vendor/php/windows/ext/php_pgsql.dll +0 -0
  43. package/vendor/php/windows/ext/php_shmop.dll +0 -0
  44. package/vendor/php/windows/ext/php_snmp.dll +0 -0
  45. package/vendor/php/windows/ext/php_soap.dll +0 -0
  46. package/vendor/php/windows/ext/php_sockets.dll +0 -0
  47. package/vendor/php/windows/ext/php_sodium.dll +0 -0
  48. package/vendor/php/windows/ext/php_sqlite3.dll +0 -0
  49. package/vendor/php/windows/ext/php_sysvshm.dll +0 -0
  50. package/vendor/php/windows/ext/php_tidy.dll +0 -0
  51. package/vendor/php/windows/ext/php_xsl.dll +0 -0
  52. package/vendor/php/windows/ext/php_zend_test.dll +0 -0
  53. package/vendor/php/windows/ext/php_zip.dll +0 -0
  54. package/vendor/php/windows/extras/ssl/legacy.dll +0 -0
  55. package/vendor/php/windows/extras/ssl/openssl.cnf +390 -0
  56. package/vendor/php/windows/glib-2.dll +0 -0
  57. package/vendor/php/windows/gmodule-2.dll +0 -0
  58. package/vendor/php/windows/icudt77.dll +0 -0
  59. package/vendor/php/windows/icuin77.dll +0 -0
  60. package/vendor/php/windows/icuio77.dll +0 -0
  61. package/vendor/php/windows/icuuc77.dll +0 -0
  62. package/vendor/php/windows/lib/enchant/libenchant2_hunspell.dll +0 -0
  63. package/vendor/php/windows/libcrypto-3-x64.dll +0 -0
  64. package/vendor/php/windows/libenchant2.dll +0 -0
  65. package/vendor/php/windows/libpq.dll +0 -0
  66. package/vendor/php/windows/libsasl.dll +0 -0
  67. package/vendor/php/windows/libsodium.dll +0 -0
  68. package/vendor/php/windows/libsqlite3.dll +0 -0
  69. package/vendor/php/windows/libssh2.dll +0 -0
  70. package/vendor/php/windows/libssl-3-x64.dll +0 -0
  71. package/vendor/php/windows/libzstd.dll +0 -0
  72. package/vendor/php/windows/license.txt +68 -0
  73. package/vendor/php/windows/manifest.json +4 -0
  74. package/vendor/php/windows/news.txt +2204 -0
  75. package/vendor/php/windows/nghttp2.dll +0 -0
  76. package/vendor/php/windows/phar.phar.bat +1 -0
  77. package/vendor/php/windows/pharcommand.phar +0 -0
  78. package/vendor/php/windows/php-cgi.exe +0 -0
  79. package/vendor/php/windows/php-win.exe +0 -0
  80. package/vendor/php/windows/php.exe +0 -0
  81. package/vendor/php/windows/php.ini +1848 -0
  82. package/vendor/php/windows/php.ini-development +1848 -0
  83. package/vendor/php/windows/php.ini-production +1850 -0
  84. package/vendor/php/windows/php8.dll +0 -0
  85. package/vendor/php/windows/php8embed.lib +0 -0
  86. package/vendor/php/windows/php8phpdbg.dll +0 -0
  87. package/vendor/php/windows/phpdbg.exe +0 -0
  88. package/vendor/php/windows/readme-redist-bins.txt +681 -0
  89. package/vendor/php/windows/snapshot.txt +157 -0
Binary file
Binary file
Binary file
@@ -0,0 +1,681 @@
1
+ 1. libmagic (ext/fileinfo) see ext/fileinfo/libmagic/LICENSE
2
+ 2. libmbfl (ext/mbstring) see ext/mbstring/libmbfl/LICENSE
3
+ 3. pcre2lib (ext/pcre)
4
+ 4. ext/standard crypt
5
+ 5. ext/standard crypt's blowfish implementation
6
+ 6. ext/standard/rand
7
+ 7. ext/standard/scanf
8
+ 8. ext/standard/strnatcmp.c
9
+ 9. ext/standard/uuencode
10
+ 10. main/snprintf.c
11
+ 11. main/strlcat
12
+ 12. main/strlcpy
13
+ 13. libgd (ext/gd)
14
+ 14. ext/phar portions of tar implementations
15
+ 15. ext/phar/zip.c portion extracted from libzip
16
+ 16. libbcmath (ext/bcmath) see ext/bcmath/libbcmath/LICENSE
17
+ 17. ext/mbstring/ucgendat portions based on the ucgendat.c from the OpenLDAP
18
+ 18. avifinfo (ext/standard/libavifinfo) see ext/standard/libavifinfo/LICENSE
19
+ 19. xxHash (ext/hash/xxhash)
20
+ 20. Lexbor (ext/dom/lexbor/lexbor) see ext/dom/lexbor/LICENSE
21
+ 21. Portions of libcperciva (ext/hash/hash_sha_{ni,sse2}.c) see the header in the source file
22
+
23
+ 3. pcre2lib (ext/pcre)
24
+
25
+ PCRE2 LICENCE
26
+ -------------
27
+
28
+ PCRE2 is a library of functions to support regular expressions whose syntax
29
+ and semantics are as close as possible to those of the Perl 5 language.
30
+
31
+ Releases 10.00 and above of PCRE2 are distributed under the terms of the "BSD"
32
+ licence, as specified below, with one exemption for certain binary
33
+ redistributions. The documentation for PCRE2, supplied in the "doc" directory,
34
+ is distributed under the same terms as the software itself. The data in the
35
+ testdata directory is not copyrighted and is in the public domain.
36
+
37
+ The basic library functions are written in C and are freestanding. Also
38
+ included in the distribution is a just-in-time compiler that can be used to
39
+ optimize pattern matching. This is an optional feature that can be omitted when
40
+ the library is built.
41
+
42
+
43
+ THE BASIC LIBRARY FUNCTIONS
44
+ ---------------------------
45
+
46
+ Written by: Philip Hazel
47
+ Email local part: ph10
48
+ Email domain: cam.ac.uk
49
+
50
+ University of Cambridge Computing Service,
51
+ Cambridge, England.
52
+
53
+ Copyright (c) 1997-2019 University of Cambridge
54
+ All rights reserved.
55
+
56
+
57
+ PCRE2 JUST-IN-TIME COMPILATION SUPPORT
58
+ --------------------------------------
59
+
60
+ Written by: Zoltan Herczeg
61
+ Email local part: hzmester
62
+ Email domain: freemail.hu
63
+
64
+ Copyright(c) 2010-2019 Zoltan Herczeg
65
+ All rights reserved.
66
+
67
+
68
+ STACK-LESS JUST-IN-TIME COMPILER
69
+ --------------------------------
70
+
71
+ Written by: Zoltan Herczeg
72
+ Email local part: hzmester
73
+ Email domain: freemail.hu
74
+
75
+ Copyright(c) 2009-2019 Zoltan Herczeg
76
+ All rights reserved.
77
+
78
+
79
+ THE "BSD" LICENCE
80
+ -----------------
81
+
82
+ Redistribution and use in source and binary forms, with or without
83
+ modification, are permitted provided that the following conditions are met:
84
+
85
+ * Redistributions of source code must retain the above copyright notices,
86
+ this list of conditions and the following disclaimer.
87
+
88
+ * Redistributions in binary form must reproduce the above copyright
89
+ notices, this list of conditions and the following disclaimer in the
90
+ documentation and/or other materials provided with the distribution.
91
+
92
+ * Neither the name of the University of Cambridge nor the names of any
93
+ contributors may be used to endorse or promote products derived from this
94
+ software without specific prior written permission.
95
+
96
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
97
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
98
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
99
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
100
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
101
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
102
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
103
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
104
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
105
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
106
+ POSSIBILITY OF SUCH DAMAGE.
107
+
108
+
109
+ EXEMPTION FOR BINARY LIBRARY-LIKE PACKAGES
110
+ ------------------------------------------
111
+
112
+ The second condition in the BSD licence (covering binary redistributions) does
113
+ not apply all the way down a chain of software. If binary package A includes
114
+ PCRE2, it must respect the condition, but if package B is software that
115
+ includes package A, the condition is not imposed on package B unless it uses
116
+ PCRE2 independently.
117
+
118
+ End
119
+
120
+
121
+ 4. ext/standard crypt
122
+
123
+ FreeSec: libcrypt for NetBSD
124
+
125
+ Copyright (c) 1994 David Burren
126
+ All rights reserved.
127
+
128
+ Redistribution and use in source and binary forms, with or without
129
+ modification, are permitted provided that the following conditions
130
+ are met:
131
+ 1. Redistributions of source code must retain the above copyright
132
+ notice, this list of conditions and the following disclaimer.
133
+ 2. Redistributions in binary form must reproduce the above copyright
134
+ notice, this list of conditions and the following disclaimer in the
135
+ documentation and/or other materials provided with the distribution.
136
+ 3. Neither the name of the author nor the names of other contributors
137
+ may be used to endorse or promote products derived from this software
138
+ without specific prior written permission.
139
+
140
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
141
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
142
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
143
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
144
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
145
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
146
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
147
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
148
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
149
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
150
+ SUCH DAMAGE.
151
+
152
+
153
+ 5. ext/standard crypt's blowfish implementation
154
+
155
+ The crypt_blowfish homepage is:
156
+
157
+ http://www.openwall.com/crypt/
158
+
159
+ This code comes from John the Ripper password cracker, with reentrant
160
+ and crypt(3) interfaces added, but optimizations specific to password
161
+ cracking removed.
162
+
163
+ Written by Solar Designer <solar at openwall.com> in 1998-2011.
164
+ No copyright is claimed, and the software is hereby placed in the public
165
+ domain. In case this attempt to disclaim copyright and place the software
166
+ in the public domain is deemed null and void, then the software is
167
+ Copyright (c) 1998-2011 Solar Designer and it is hereby released to the
168
+ general public under the following terms:
169
+
170
+ Redistribution and use in source and binary forms, with or without
171
+ modification, are permitted.
172
+
173
+ There's ABSOLUTELY NO WARRANTY, express or implied.
174
+
175
+ It is my intent that you should be able to use this on your system,
176
+ as part of a software package, or anywhere else to improve security,
177
+ ensure compatibility, or for any other purpose. I would appreciate
178
+ it if you give credit where it is due and keep your modifications in
179
+ the public domain as well, but I don't require that in order to let
180
+ you place this code and any modifications you make under a license
181
+ of your choice.
182
+
183
+ This implementation is mostly compatible with OpenBSD's bcrypt.c (prefix
184
+ "$2a$") by Niels Provos <provos at citi.umich.edu>, and uses some of his
185
+ ideas. The password hashing algorithm was designed by David Mazieres
186
+ <dm at lcs.mit.edu>. For more information on the level of compatibility,
187
+ please refer to the comments in BF_set_key() and to the crypt(3) man page
188
+ included in the crypt_blowfish tarball.
189
+
190
+ There's a paper on the algorithm that explains its design decisions:
191
+
192
+ http://www.usenix.org/events/usenix99/provos.html
193
+
194
+ Some of the tricks in BF_ROUND might be inspired by Eric Young's
195
+ Blowfish library (I can't be sure if I would think of something if I
196
+ hadn't seen his code).
197
+
198
+
199
+ 6. ext/standard/rand
200
+
201
+ The following php_mt_...() functions are based on a C++ class MTRand by
202
+ Richard J. Wagner. For more information see the web page at
203
+ http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html
204
+
205
+ Mersenne Twister random number generator -- a C++ class MTRand
206
+ Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus
207
+ Richard J. Wagner v1.0 15 May 2003 rjwagner@writeme.com
208
+
209
+ The Mersenne Twister is an algorithm for generating random numbers. It
210
+ was designed with consideration of the flaws in various other generators.
211
+ The period, 2^19937-1, and the order of equidistribution, 623 dimensions,
212
+ are far greater. The generator is also fast; it avoids multiplication and
213
+ division, and it benefits from caches and pipelines. For more information
214
+ see the inventors' web page at http://www.math.keio.ac.jp/~matumoto/emt.html
215
+
216
+ Reference
217
+ M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally
218
+ Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on
219
+ Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30.
220
+
221
+ Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
222
+ Copyright (C) 2000 - 2003, Richard J. Wagner
223
+ All rights reserved.
224
+
225
+ Redistribution and use in source and binary forms, with or without
226
+ modification, are permitted provided that the following conditions
227
+ are met:
228
+
229
+ 1. Redistributions of source code must retain the above copyright
230
+ notice, this list of conditions and the following disclaimer.
231
+
232
+ 2. Redistributions in binary form must reproduce the above copyright
233
+ notice, this list of conditions and the following disclaimer in the
234
+ documentation and/or other materials provided with the distribution.
235
+
236
+ 3. The names of its contributors may not be used to endorse or promote
237
+ products derived from this software without specific prior written
238
+ permission.
239
+
240
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
241
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
242
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
243
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
244
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
245
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
246
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
247
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
248
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
249
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
250
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
251
+
252
+
253
+ 7. ext/standard/scanf
254
+
255
+ scanf.c --
256
+
257
+ This file contains the base code which implements sscanf and by extension
258
+ fscanf. Original code is from TCL8.3.0 and bears the following copyright:
259
+
260
+ This software is copyrighted by the Regents of the University of
261
+ California, Sun Microsystems, Inc., Scriptics Corporation,
262
+ and other parties. The following terms apply to all files associated
263
+ with the software unless explicitly disclaimed in individual files.
264
+
265
+ The authors hereby grant permission to use, copy, modify, distribute,
266
+ and license this software and its documentation for any purpose, provided
267
+ that existing copyright notices are retained in all copies and that this
268
+ notice is included verbatim in any distributions. No written agreement,
269
+ license, or royalty fee is required for any of the authorized uses.
270
+ Modifications to this software may be copyrighted by their authors
271
+ and need not follow the licensing terms described here, provided that
272
+ the new terms are clearly indicated on the first page of each file where
273
+ they apply.
274
+
275
+ IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
276
+ FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
277
+ ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
278
+ DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
279
+ POSSIBILITY OF SUCH DAMAGE.
280
+
281
+ THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
282
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
283
+ FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
284
+ IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
285
+ NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
286
+ MODIFICATIONS.
287
+
288
+ GOVERNMENT USE: If you are acquiring this software on behalf of the
289
+ U.S. government, the Government shall have only "Restricted Rights"
290
+ in the software and related documentation as defined in the Federal
291
+ Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
292
+ are acquiring the software on behalf of the Department of Defense, the
293
+ software shall be classified as "Commercial Computer Software" and the
294
+ Government shall have only "Restricted Rights" as defined in Clause
295
+ 252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
296
+ authors grant the U.S. Government and others acting in its behalf
297
+ permission to use and distribute the software in accordance with the
298
+ terms specified in this license.
299
+
300
+
301
+ 8. ext/standard/strnatcmp.c
302
+
303
+ strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
304
+ Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au>
305
+
306
+ This software is provided 'as-is', without any express or implied
307
+ warranty. In no event will the authors be held liable for any damages
308
+ arising from the use of this software.
309
+
310
+ Permission is granted to anyone to use this software for any purpose,
311
+ including commercial applications, and to alter it and redistribute it
312
+ freely, subject to the following restrictions:
313
+
314
+ 1. The origin of this software must not be misrepresented; you must not
315
+ claim that you wrote the original software. If you use this software
316
+ in a product, an acknowledgment in the product documentation would be
317
+ appreciated but is not required.
318
+ 2. Altered source versions must be plainly marked as such, and must not be
319
+ misrepresented as being the original software.
320
+ 3. This notice may not be removed or altered from any source distribution.
321
+
322
+
323
+ 9. ext/standard/uuencode
324
+
325
+ Portions of this code are based on Berkeley's uuencode/uudecode
326
+ implementation.
327
+
328
+ Copyright (c) 1983, 1993
329
+ The Regents of the University of California. All rights reserved.
330
+
331
+ Redistribution and use in source and binary forms, with or without
332
+ modification, are permitted provided that the following conditions
333
+ are met:
334
+ 1. Redistributions of source code must retain the above copyright
335
+ notice, this list of conditions and the following disclaimer.
336
+ 2. Redistributions in binary form must reproduce the above copyright
337
+ notice, this list of conditions and the following disclaimer in the
338
+ documentation and/or other materials provided with the distribution.
339
+ 3. All advertising materials mentioning features or use of this software
340
+ must display the following acknowledgement:
341
+ This product includes software developed by the University of
342
+ California, Berkeley and its contributors.
343
+ 4. Neither the name of the University nor the names of its contributors
344
+ may be used to endorse or promote products derived from this software
345
+ without specific prior written permission.
346
+
347
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
348
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
349
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
350
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
351
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
352
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
353
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
354
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
355
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
356
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
357
+ SUCH DAMAGE.
358
+
359
+
360
+ 10. main/snprintf.c
361
+
362
+ Copyright (c) 2002, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
363
+
364
+ Permission to use, copy, modify, and distribute this software for any
365
+ purpose with or without fee is hereby granted, provided that the above
366
+ copyright notice and this permission notice appear in all copies.
367
+
368
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
369
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
370
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
371
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
372
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
373
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
374
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
375
+
376
+ Sponsored in part by the Defense Advanced Research Projects
377
+ Agency (DARPA) and Air Force Research Laboratory, Air Force
378
+ Materiel Command, USAF, under agreement number F39502-99-1-0512.
379
+
380
+ main/spprintf
381
+ Copyright (c) 1995-1998 The Apache Group. All rights reserved.
382
+
383
+ Redistribution and use in source and binary forms, with or without
384
+ modification, are permitted provided that the following conditions
385
+ are met:
386
+
387
+ 1. Redistributions of source code must retain the above copyright
388
+ notice, this list of conditions and the following disclaimer.
389
+
390
+ 2. Redistributions in binary form must reproduce the above copyright
391
+ notice, this list of conditions and the following disclaimer in
392
+ the documentation and/or other materials provided with the
393
+ distribution.
394
+
395
+ 3. All advertising materials mentioning features or use of this
396
+ software must display the following acknowledgment:
397
+ "This product includes software developed by the Apache Group
398
+ for use in the Apache HTTP server project (http://www.apache.org/)."
399
+
400
+ 4. The names "Apache Server" and "Apache Group" must not be used to
401
+ endorse or promote products derived from this software without
402
+ prior written permission.
403
+
404
+ 5. Redistributions of any form whatsoever must retain the following
405
+ acknowledgment:
406
+ "This product includes software developed by the Apache Group
407
+ for use in the Apache HTTP server project (http://www.apache.org/)."
408
+
409
+ THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
410
+ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
411
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
412
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR
413
+ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
414
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
415
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
416
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
417
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
418
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
419
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
420
+ OF THE POSSIBILITY OF SUCH DAMAGE.
421
+ ====================================================================
422
+
423
+ This software consists of voluntary contributions made by many
424
+ individuals on behalf of the Apache Group and was originally based
425
+ on public domain software written at the National Center for
426
+ Supercomputing Applications, University of Illinois, Urbana-Champaign.
427
+ For more information on the Apache Group and the Apache HTTP server
428
+ project, please see <http://www.apache.org/>.
429
+
430
+ This code is based on, and used with the permission of, the
431
+ SIO stdio-replacement strx_* functions by Panos Tsirigotis
432
+ <panos@alumni.cs.colorado.edu> for xinetd.
433
+
434
+
435
+ 11. main/strlcat
436
+ 12. main/strlcpy
437
+
438
+ Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
439
+ All rights reserved.
440
+
441
+ Redistribution and use in source and binary forms, with or without
442
+ modification, are permitted provided that the following conditions
443
+ are met:
444
+ 1. Redistributions of source code must retain the above copyright
445
+ notice, this list of conditions and the following disclaimer.
446
+ 2. Redistributions in binary form must reproduce the above copyright
447
+ notice, this list of conditions and the following disclaimer in the
448
+ documentation and/or other materials provided with the distribution.
449
+ 3. The name of the author may not be used to endorse or promote products
450
+ derived from this software without specific prior written permission.
451
+
452
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
453
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
454
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
455
+ THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
456
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
457
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
458
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
459
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
460
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
461
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
462
+
463
+
464
+ 13. libgd (ext/gd)
465
+
466
+ * Portions copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
467
+ 2002, 2003, 2004 by Cold Spring Harbor Laboratory. Funded under
468
+ Grant P41-RR02188 by the National Institutes of Health.
469
+
470
+ * Portions copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
471
+ 2004 by Boutell.Com, Inc.
472
+
473
+ * Portions relating to GD2 format copyright 1999, 2000, 2001, 2002,
474
+ 2003, 2004 Philip Warner.
475
+
476
+ * Portions relating to PNG copyright 1999, 2000, 2001, 2002, 2003,
477
+ 2004 Greg Roelofs.
478
+
479
+ * Portions relating to gdttf.c copyright 1999, 2000, 2001, 2002,
480
+ 2003, 2004 John Ellson (ellson@graphviz.org).
481
+
482
+ * Portions relating to gdft.c copyright 2001, 2002, 2003, 2004 John
483
+ Ellson (ellson@graphviz.org).
484
+
485
+ * Portions copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
486
+ Pierre-Alain Joye (pierre@libgd.org).
487
+
488
+ * Portions relating to JPEG and to color quantization copyright
489
+ 2000, 2001, 2002, 2003, 2004, Doug Becker and copyright (C) 1994,
490
+ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Thomas
491
+ G. Lane. This software is based in part on the work of the
492
+ Independent JPEG Group. See the file README-JPEG.TXT for more
493
+ information.
494
+
495
+ * Portions relating to GIF compression copyright 1989 by Jef
496
+ Poskanzer and David Rowley, with modifications for thread safety
497
+ by Thomas Boutell.
498
+
499
+ * Portions relating to GIF decompression copyright 1990, 1991, 1993
500
+ by David Koblas, with modifications for thread safety by Thomas
501
+ Boutell.
502
+
503
+ * Portions relating to WBMP copyright 2000, 2001, 2002, 2003, 2004
504
+ Maurice Szmurlo and Johan Van den Brande.
505
+
506
+ * Portions relating to GIF animations copyright 2004 Jaakko Hyvätti
507
+ (jaakko.hyvatti@iki.fi)
508
+
509
+ Permission has been granted to copy, distribute and modify gd in
510
+ any context without fee, including a commercial application,
511
+ provided that this notice is present in user-accessible supporting
512
+ documentation.
513
+
514
+ This does not affect your ownership of the derived work itself,
515
+ and the intent is to assure proper credit for the authors of gd,
516
+ not to interfere with your productive use of gd. If you have
517
+ questions, ask. "Derived works" includes all programs that utilize
518
+ the library. Credit must be given in user-accessible
519
+ documentation.
520
+
521
+ This software is provided "AS IS." The copyright holders disclaim
522
+ all warranties, either express or implied, including but not
523
+ limited to implied warranties of merchantability and fitness for a
524
+ particular purpose, with respect to this code and accompanying
525
+ documentation.
526
+
527
+ Although their code does not appear in the current release, the
528
+ authors wish to thank David Koblas, David Rowley, and Hutchison
529
+ Avenue Software Corporation for their prior contributions.
530
+
531
+ END OF COPYRIGHT STATEMENT
532
+
533
+
534
+ 14. ext/phar portions of tar implementations
535
+
536
+ portions of tar implementations in ext/phar - phar_tar_octal() are based on an
537
+ implementation by Tim Kientzle from libarchive, licensed with this license:
538
+
539
+ Copyright (c) 2003-2007 Tim Kientzle
540
+ All rights reserved.
541
+
542
+ Redistribution and use in source and binary forms, with or without
543
+ modification, are permitted provided that the following conditions
544
+ are met:
545
+ 1. Redistributions of source code must retain the above copyright
546
+ notice, this list of conditions and the following disclaimer.
547
+ 2. Redistributions in binary form must reproduce the above copyright
548
+ notice, this list of conditions and the following disclaimer in the
549
+ documentation and/or other materials provided with the distribution.
550
+
551
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
552
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
553
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
554
+ IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
555
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
556
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
557
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
558
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
559
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
560
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
561
+
562
+
563
+ 15. ext/phar/zip.c portion extracted from libzip
564
+
565
+ zip_dirent.c -- read directory entry (local or central), clean dirent
566
+ Copyright (C) 1999, 2003, 2004, 2005 Dieter Baron and Thomas Klausner
567
+
568
+ This function is part of libzip, a library to manipulate ZIP archives.
569
+ The authors can be contacted at <nih@giga.or.at>
570
+
571
+ Redistribution and use in source and binary forms, with or without
572
+ modification, are permitted provided that the following conditions
573
+ are met:
574
+ 1. Redistributions of source code must retain the above copyright
575
+ notice, this list of conditions and the following disclaimer.
576
+ 2. Redistributions in binary form must reproduce the above copyright
577
+ notice, this list of conditions and the following disclaimer in
578
+ the documentation and/or other materials provided with the
579
+ distribution.
580
+ 3. The names of the authors may not be used to endorse or promote
581
+ products derived from this software without specific prior
582
+ written permission.
583
+
584
+ THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
585
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
586
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
587
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
588
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
589
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
590
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
591
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
592
+ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
593
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
594
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
595
+
596
+
597
+ 17. ext/mbstring/ucgendat portions based on the ucgendat.c from the OpenLDAP
598
+
599
+ The OpenLDAP Public License
600
+ Version 2.8, 17 August 2003
601
+
602
+ Redistribution and use of this software and associated documentation
603
+ ("Software"), with or without modification, are permitted provided
604
+ that the following conditions are met:
605
+
606
+ 1. Redistributions in source form must retain copyright statements
607
+ and notices,
608
+
609
+ 2. Redistributions in binary form must reproduce applicable copyright
610
+ statements and notices, this list of conditions, and the following
611
+ disclaimer in the documentation and/or other materials provided
612
+ with the distribution, and
613
+
614
+ 3. Redistributions must contain a verbatim copy of this document.
615
+
616
+ The OpenLDAP Foundation may revise this license from time to time.
617
+ Each revision is distinguished by a version number. You may use
618
+ this Software under terms of this license revision or under the
619
+ terms of any subsequent revision of the license.
620
+
621
+ THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS
622
+ CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
623
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
624
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
625
+ SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S)
626
+ OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
627
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
628
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
629
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
630
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
631
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
632
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
633
+ POSSIBILITY OF SUCH DAMAGE.
634
+
635
+ The names of the authors and copyright holders must not be used in
636
+ advertising or otherwise to promote the sale, use or other dealing
637
+ in this Software without specific, written prior permission. Title
638
+ to copyright in this Software shall at all times remain with copyright
639
+ holders.
640
+
641
+ OpenLDAP is a registered trademark of the OpenLDAP Foundation.
642
+
643
+ Copyright 1999-2003 The OpenLDAP Foundation, Redwood City,
644
+ California, USA. All Rights Reserved. Permission to copy and
645
+ distribute verbatim copies of this document is granted.
646
+
647
+
648
+ 19. xxHash
649
+
650
+ xxHash - Extremely Fast Hash algorithm
651
+ Header File
652
+ Copyright (C) 2012-2020 Yann Collet
653
+
654
+ BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
655
+
656
+ Redistribution and use in source and binary forms, with or without
657
+ modification, are permitted provided that the following conditions are
658
+ met:
659
+
660
+ * Redistributions of source code must retain the above copyright
661
+ notice, this list of conditions and the following disclaimer.
662
+ * Redistributions in binary form must reproduce the above
663
+ copyright notice, this list of conditions and the following disclaimer
664
+ in the documentation and/or other materials provided with the
665
+ distribution.
666
+
667
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
668
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
669
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
670
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
671
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
672
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
673
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
674
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
675
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
676
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
677
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
678
+
679
+ You can contact the author at:
680
+ - xxHash homepage: https://www.xxhash.com
681
+ - xxHash source repository: https://github.com/Cyan4973/xxHash