11. libmagic (ext/fileinfo) see ext/fileinfo/libmagic/LICENSE 22. Oniguruma (ext/mbstring) see ext/mbstring/oniguruma/COPYING 33. libmbfl (ext/mbstring) see ext/mbstring/libmbfl/LICENSE 44. pcre2lib (ext/pcre) 55. ext/standard crypt 66. ext/standard crypt's blowfish implementation 77. Sqlite/Sqlite3 ext/sqlite3 ext/sqlite 88. ext/standard/rand 99. ext/standard/scanf 1010. ext/standard/strnatcmp.c 1111. ext/standard/uuencode 1212. libxmlrpc ext/xmlrpc 1313. libzip ext/zip 1414. main/snprintf.c 1515. main/strlcat 1616. main/strlcpy 1717. libgd see ext/gd/libgd/COPYING 1818. ext/phar portions of tar implementations 1919. libbcmath (ext/bcmath) see ext/bcmath/libbcmath/COPYING.LIB 20 21 224. pcre2lib (ext/pcre) 23 24PCRE2 LICENCE 25------------- 26 27PCRE2 is a library of functions to support regular expressions whose syntax 28and semantics are as close as possible to those of the Perl 5 language. 29 30Release 10 of PCRE2 is distributed under the terms of the "BSD" licence, as 31specified below, with one exemption for certain binary redistributions. The 32documentation for PCRE2, supplied in the "doc" directory, is distributed under 33the same terms as the software itself. The data in the testdata directory is 34not copyrighted and is in the public domain. 35 36The basic library functions are written in C and are freestanding. Also 37included in the distribution is a just-in-time compiler that can be used to 38optimize pattern matching. This is an optional feature that can be omitted when 39the library is built. 40 41 42THE BASIC LIBRARY FUNCTIONS 43--------------------------- 44 45Written by: Philip Hazel 46Email local part: ph10 47Email domain: cam.ac.uk 48 49University of Cambridge Computing Service, 50Cambridge, England. 51 52Copyright (c) 1997-2018 University of Cambridge 53All rights reserved. 54 55 56PCRE2 JUST-IN-TIME COMPILATION SUPPORT 57-------------------------------------- 58 59Written by: Zoltan Herczeg 60Email local part: hzmester 61Emain domain: freemail.hu 62 63Copyright(c) 2010-2018 Zoltan Herczeg 64All rights reserved. 65 66 67STACK-LESS JUST-IN-TIME COMPILER 68-------------------------------- 69 70Written by: Zoltan Herczeg 71Email local part: hzmester 72Emain domain: freemail.hu 73 74Copyright(c) 2009-2018 Zoltan Herczeg 75All rights reserved. 76 77 78THE "BSD" LICENCE 79----------------- 80 81Redistribution and use in source and binary forms, with or without 82modification, are permitted provided that the following conditions are met: 83 84 * Redistributions of source code must retain the above copyright notices, 85 this list of conditions and the following disclaimer. 86 87 * Redistributions in binary form must reproduce the above copyright 88 notices, this list of conditions and the following disclaimer in the 89 documentation and/or other materials provided with the distribution. 90 91 * Neither the name of the University of Cambridge nor the names of any 92 contributors may be used to endorse or promote products derived from this 93 software without specific prior written permission. 94 95THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 96AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 97IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 98ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 99LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 100CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 101SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 102INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 103CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 104ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 105POSSIBILITY OF SUCH DAMAGE. 106 107 108EXEMPTION FOR BINARY LIBRARY-LIKE PACKAGES 109------------------------------------------ 110 111The second condition in the BSD licence (covering binary redistributions) does 112not apply all the way down a chain of software. If binary package A includes 113PCRE2, it must respect the condition, but if package B is software that 114includes package A, the condition is not imposed on package B unless it uses 115PCRE2 independently. 116 117End 118 119 1205. ext/standard crypt 121 122FreeSec: libcrypt for NetBSD 123 124Copyright (c) 1994 David Burren 125All rights reserved. 126 127Redistribution and use in source and binary forms, with or without 128modification, are permitted provided that the following conditions 129are met: 1301. Redistributions of source code must retain the above copyright 131 notice, this list of conditions and the following disclaimer. 1322. Redistributions in binary form must reproduce the above copyright 133 notice, this list of conditions and the following disclaimer in the 134 documentation and/or other materials provided with the distribution. 1353. Neither the name of the author nor the names of other contributors 136 may be used to endorse or promote products derived from this software 137 without specific prior written permission. 138 139THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 140ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 141IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 142ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 143FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 144DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 145OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 146HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 147LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 148OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 149SUCH DAMAGE. 150 151 1526. ext/standard crypt's blowfish implementation 153 154The crypt_blowfish homepage is: 155 156http://www.openwall.com/crypt/ 157 158This code comes from John the Ripper password cracker, with reentrant 159and crypt(3) interfaces added, but optimizations specific to password 160cracking removed. 161 162Written by Solar Designer <solar at openwall.com> in 1998-2011. 163No copyright is claimed, and the software is hereby placed in the public 164domain. In case this attempt to disclaim copyright and place the software 165in the public domain is deemed null and void, then the software is 166Copyright (c) 1998-2011 Solar Designer and it is hereby released to the 167general public under the following terms: 168 169Redistribution and use in source and binary forms, with or without 170modification, are permitted. 171 172There's ABSOLUTELY NO WARRANTY, express or implied. 173 174It is my intent that you should be able to use this on your system, 175as part of a software package, or anywhere else to improve security, 176ensure compatibility, or for any other purpose. I would appreciate 177it if you give credit where it is due and keep your modifications in 178the public domain as well, but I don't require that in order to let 179you place this code and any modifications you make under a license 180of your choice. 181 182This implementation is mostly compatible with OpenBSD's bcrypt.c (prefix 183"$2a$") by Niels Provos <provos at citi.umich.edu>, and uses some of his 184ideas. The password hashing algorithm was designed by David Mazieres 185<dm at lcs.mit.edu>. For more information on the level of compatibility, 186please refer to the comments in BF_set_key() and to the crypt(3) man page 187included in the crypt_blowfish tarball. 188 189There's a paper on the algorithm that explains its design decisions: 190 191http://www.usenix.org/events/usenix99/provos.html 192 193Some of the tricks in BF_ROUND might be inspired by Eric Young's 194Blowfish library (I can't be sure if I would think of something if I 195hadn't seen his code). 196 197 1987. Sqlite/Sqlite3 ext/sqlite3 ext/sqlite 199 200The author disclaims copyright to this source code. In place of 201a legal notice, here is a blessing: 202 May you do good and not evil. 203 May you find forgiveness for yourself and forgive others. 204 May you share freely, never taking more than you give. 205 206 2078. ext/standard/rand 208The following php_mt_...() functions are based on a C++ class MTRand by 209Richard J. Wagner. For more information see the web page at 210http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html 211 212Mersenne Twister random number generator -- a C++ class MTRand 213Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus 214Richard J. Wagner v1.0 15 May 2003 rjwagner@writeme.com 215 216The Mersenne Twister is an algorithm for generating random numbers. It 217was designed with consideration of the flaws in various other generators. 218The period, 2^19937-1, and the order of equidistribution, 623 dimensions, 219are far greater. The generator is also fast; it avoids multiplication and 220division, and it benefits from caches and pipelines. For more information 221see the inventors' web page at http://www.math.keio.ac.jp/~matumoto/emt.html 222 223Reference 224M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally 225Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on 226Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30. 227 228Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, 229Copyright (C) 2000 - 2003, Richard J. Wagner 230All rights reserved. 231 232Redistribution and use in source and binary forms, with or without 233modification, are permitted provided that the following conditions 234are met: 235 2361. Redistributions of source code must retain the above copyright 237 notice, this list of conditions and the following disclaimer. 238 2392. Redistributions in binary form must reproduce the above copyright 240 notice, this list of conditions and the following disclaimer in the 241 documentation and/or other materials provided with the distribution. 242 2433. The names of its contributors may not be used to endorse or promote 244 products derived from this software without specific prior written 245 permission. 246 247THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 248"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 249LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 250A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 251CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 252EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 253PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 254PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 255LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 256NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 257SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 258 259 2609. ext/standard/scanf 261scanf.c -- 262 263This file contains the base code which implements sscanf and by extension 264fscanf. Original code is from TCL8.3.0 and bears the following copyright: 265 266This software is copyrighted by the Regents of the University of 267California, Sun Microsystems, Inc., Scriptics Corporation, 268and other parties. The following terms apply to all files associated 269with the software unless explicitly disclaimed in individual files. 270 271The authors hereby grant permission to use, copy, modify, distribute, 272and license this software and its documentation for any purpose, provided 273that existing copyright notices are retained in all copies and that this 274notice is included verbatim in any distributions. No written agreement, 275license, or royalty fee is required for any of the authorized uses. 276Modifications to this software may be copyrighted by their authors 277and need not follow the licensing terms described here, provided that 278the new terms are clearly indicated on the first page of each file where 279they apply. 280 281IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY 282FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 283ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY 284DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE 285POSSIBILITY OF SUCH DAMAGE. 286 287THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, 288INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 289FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE 290IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE 291NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR 292MODIFICATIONS. 293 294GOVERNMENT USE: If you are acquiring this software on behalf of the 295U.S. government, the Government shall have only "Restricted Rights" 296in the software and related documentation as defined in the Federal 297Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you 298are acquiring the software on behalf of the Department of Defense, the 299software shall be classified as "Commercial Computer Software" and the 300Government shall have only "Restricted Rights" as defined in Clause 301252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the 302authors grant the U.S. Government and others acting in its behalf 303permission to use and distribute the software in accordance with the 304terms specified in this license. 305 30610. ext/standard/strnatcmp.c 307 308strnatcmp.c -- Perform 'natural order' comparisons of strings in C. 309Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au> 310 311This software is provided 'as-is', without any express or implied 312warranty. In no event will the authors be held liable for any damages 313arising from the use of this software. 314 315Permission is granted to anyone to use this software for any purpose, 316including commercial applications, and to alter it and redistribute it 317freely, subject to the following restrictions: 318 3191. The origin of this software must not be misrepresented; you must not 320 claim that you wrote the original software. If you use this software 321 in a product, an acknowledgment in the product documentation would be 322 appreciated but is not required. 3232. Altered source versions must be plainly marked as such, and must not be 324 misrepresented as being the original software. 3253. This notice may not be removed or altered from any source distribution. 326 32711. ext/standard/uuencode 328Portions of this code are based on Berkeley's uuencode/uudecode 329implementation. 330 331Copyright (c) 1983, 1993 332The Regents of the University of California. All rights reserved. 333 334Redistribution and use in source and binary forms, with or without 335modification, are permitted provided that the following conditions 336are met: 3371. Redistributions of source code must retain the above copyright 338 notice, this list of conditions and the following disclaimer. 3392. Redistributions in binary form must reproduce the above copyright 340 notice, this list of conditions and the following disclaimer in the 341 documentation and/or other materials provided with the distribution. 3423. All advertising materials mentioning features or use of this software 343 must display the following acknowledgement: 344This product includes software developed by the University of 345California, Berkeley and its contributors. 3464. Neither the name of the University nor the names of its contributors 347 may be used to endorse or promote products derived from this software 348 without specific prior written permission. 349 350THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 351ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 352IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 353ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 354FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 355DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 356OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 357HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 358LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 359OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 360SUCH DAMAGE. 361 362 36312. libxmlrpc ext/xmlrpc 364 365Copyright 2000 Epinions, Inc. 366 367Subject to the following 3 conditions, Epinions, Inc. permits you, free 368of charge, to (a) use, copy, distribute, modify, perform and display this 369software and associated documentation files (the "Software"), and (b) 370permit others to whom the Software is furnished to do so as well. 371 3721) The above copyright notice and this permission notice shall be included 373without modification in all copies or substantial portions of the 374Software. 375 3762) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF 377ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY 378IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR 379PURPOSE OR NONINFRINGEMENT. 380 3813) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, 382SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT 383OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING 384NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH 385DAMAGES. 386 38713. libzip ext/zip 388zip.h -- exported declarations. 389Copyright (C) 1999-2009 Dieter Baron and Thomas Klausner 390 391This file is part of libzip, a library to manipulate ZIP archives. 392The authors can be contacted at <libzip@nih.at> 393 394Redistribution and use in source and binary forms, with or without 395modification, are permitted provided that the following conditions 396are met: 3971. Redistributions of source code must retain the above copyright 398 notice, this list of conditions and the following disclaimer. 3992. Redistributions in binary form must reproduce the above copyright 400 notice, this list of conditions and the following disclaimer in 401 the documentation and/or other materials provided with the 402 distribution. 4033. The names of the authors may not be used to endorse or promote 404 products derived from this software without specific prior 405 written permission. 406 407THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS 408OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 409WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 410ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 411DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 412DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 413GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 414INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 415IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 416OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 417IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 418 41914. main/snprintf.c 420Copyright (c) 2002, 2006 Todd C. Miller <Todd.Miller@courtesan.com> 421 422Permission to use, copy, modify, and distribute this software for any 423purpose with or without fee is hereby granted, provided that the above 424copyright notice and this permission notice appear in all copies. 425 426THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 427WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 428MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 429ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 430WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 431ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 432OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 433 434Sponsored in part by the Defense Advanced Research Projects 435Agency (DARPA) and Air Force Research Laboratory, Air Force 436Materiel Command, USAF, under agreement number F39502-99-1-0512. 437 438main/spprintf 439Copyright (c) 1995-1998 The Apache Group. All rights reserved. 440 441Redistribution and use in source and binary forms, with or without 442modification, are permitted provided that the following conditions 443are met: 444 4451. Redistributions of source code must retain the above copyright 446 notice, this list of conditions and the following disclaimer. 447 4482. Redistributions in binary form must reproduce the above copyright 449 notice, this list of conditions and the following disclaimer in 450 the documentation and/or other materials provided with the 451 distribution. 452 4533. All advertising materials mentioning features or use of this 454 software must display the following acknowledgment: 455 "This product includes software developed by the Apache Group 456 for use in the Apache HTTP server project (http://www.apache.org/)." 457 4584. The names "Apache Server" and "Apache Group" must not be used to 459 endorse or promote products derived from this software without 460 prior written permission. 461 4625. Redistributions of any form whatsoever must retain the following 463 acknowledgment: 464 "This product includes software developed by the Apache Group 465 for use in the Apache HTTP server project (http://www.apache.org/)." 466 467THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY 468EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 469IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 470PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR 471ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 472SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 473NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 474LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 475HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 476STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 477ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 478OF THE POSSIBILITY OF SUCH DAMAGE. 479==================================================================== 480 481This software consists of voluntary contributions made by many 482individuals on behalf of the Apache Group and was originally based 483on public domain software written at the National Center for 484Supercomputing Applications, University of Illinois, Urbana-Champaign. 485For more information on the Apache Group and the Apache HTTP server 486project, please see <http://www.apache.org/>. 487 488This code is based on, and used with the permission of, the 489SIO stdio-replacement strx_* functions by Panos Tsirigotis 490<panos@alumni.cs.colorado.edu> for xinetd. 491 49215. main/strlcat 49316. main/strlcpy 494Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 495All rights reserved. 496 497Redistribution and use in source and binary forms, with or without 498modification, are permitted provided that the following conditions 499are met: 5001. Redistributions of source code must retain the above copyright 501 notice, this list of conditions and the following disclaimer. 5022. Redistributions in binary form must reproduce the above copyright 503 notice, this list of conditions and the following disclaimer in the 504 documentation and/or other materials provided with the distribution. 5053. The name of the author may not be used to endorse or promote products 506 derived from this software without specific prior written permission. 507 508THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 509INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 510AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 511THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 512EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 513PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 514OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 515WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 516OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 517ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 518 51918. ext/phar portions of tar implementations 520 521portions of tar implementations in ext/phar - phar_tar_octal() are based on an 522implementation by Tim Kientzle from libarchive, licensed with this license: 523 524 Copyright (c) 2003-2007 Tim Kientzle 525 All rights reserved. 526 527 Redistribution and use in source and binary forms, with or without 528 modification, are permitted provided that the following conditions 529 are met: 530 1. Redistributions of source code must retain the above copyright 531 notice, this list of conditions and the following disclaimer. 532 2. Redistributions in binary form must reproduce the above copyright 533 notice, this list of conditions and the following disclaimer in the 534 documentation and/or other materials provided with the distribution. 535 536 THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 537 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 538 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 539 IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 540 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 541 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 542 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 543 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 544 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 545 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 546