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