Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 430 lines (348 sloc) 20.264 kb
4092360 @pierrejoye -add licenses info for bundled libs, codes merged from other projects, e...
pierrejoye authored
1 1. libmagic (ext/fileinfo) see ext/fileinfo/libmagic/LICENSE
2 2. Oniguruma (ext/mbstring) see ext/mbstring/oniguruma/COPYING
3 3. libmbfl (ext/mbstring) see ext/mbstring/libmbfl/LICENSE
4 4. pcrelib (ext/pcre) see ext/pcre/pcrelib/LICENCE
5 5. ext/standard crypt
6 6. ext/standard crypt's blowfish implementation
7 7. Sqlite/Sqlite3 ext/sqlite3 ext/sqlite
8 8. ext/json/json_parser
9 9. ext/standard/rand
10 10. ext/standard/scanf
11 11. ext/standard/strnatcmp.c
12 12. ext/standard/uuencode
13 13. libxmlrpc ext/xmlrpc
14 14. libzip ext/zip
15 15. main/snprintf.c
16 16. main/strlcat
17 17. main/strlcpy
18 18. libgd see ext/gd/libgd/COPYING
19
20 5. ext/standard crypt
21
22 FreeSec: libcrypt for NetBSD
23
24 Copyright (c) 1994 David Burren
25 All rights reserved.
26
27 Redistribution and use in source and binary forms, with or without
28 modification, are permitted provided that the following conditions
29 are met:
30 1. Redistributions of source code must retain the above copyright
31 notice, this list of conditions and the following disclaimer.
32 2. Redistributions in binary form must reproduce the above copyright
33 notice, this list of conditions and the following disclaimer in the
34 documentation and/or other materials provided with the distribution.
35 3. Neither the name of the author nor the names of other contributors
36 may be used to endorse or promote products derived from this software
37 without specific prior written permission.
38
39 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
40 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
42 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
43 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
44 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
45 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
47 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
48 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
49 SUCH DAMAGE.
50
51
52 6. ext/standard crypt's blowfish implementation
53
54 This code comes from John the Ripper password cracker, with reentrant
55 and crypt(3) interfaces added, but optimizations specific to password
56 cracking removed.
57
58 Written by Solar Designer <solar at openwall.com> in 1998-2002 and
59 placed in the public domain.
60
61 There's absolutely no warranty.
62
63 It is my intent that you should be able to use this on your system,
64 as a part of a software package, or anywhere else to improve security,
65 ensure compatibility, or for any other purpose. I would appreciate
66 it if you give credit where it is due and keep your modifications in
67 the public domain as well, but I don't require that in order to let
68 you place this code and any modifications you make under a license
69 of your choice.
70
71 This implementation is compatible with OpenBSD bcrypt.c (version 2a)
72 by Niels Provos <provos at citi.umich.edu>, and uses some of his
73 ideas. The password hashing algorithm was designed by David Mazieres
74 <dm at lcs.mit.edu>.
75
76 There's a paper on the algorithm that explains its design decisions:
77
78 http://www.usenix.org/events/usenix99/provos.html
79
80 Some of the tricks in BF_ROUND might be inspired by Eric Young's
81 Blowfish library (I can't be sure if I would think of something if I
82 hadn't seen his code).
83
84
85 7. Sqlite/Sqlite3 ext/sqlite3 ext/sqlite
86
87 The author disclaims copyright to this source code. In place of
88 a legal notice, here is a blessing:
89 May you do good and not evil.
90 May you find forgiveness for yourself and forgive others.
91 May you share freely, never taking more than you give.
92
93
94 8. ext/json/json_parser
95 Copyright (c) 2005 JSON.org
96
97 Permission is hereby granted, free of charge, to any person obtaining a copy
98 of this software and associated documentation files (the "Software"), to deal
99 in the Software without restriction, including without limitation the rights
100 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
101 copies of the Software, and to permit persons to whom the Software is
102 furnished to do so, subject to the following conditions:
103
104 The above copyright notice and this permission notice shall be included in all
105 copies or substantial portions of the Software.
106
107 The Software shall be used for Good, not Evil.
108
109 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
110 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
111 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
112 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
113 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
114 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
115 SOFTWARE.
116
117
118 9. ext/standard/rand
119 The following php_mt_...() functions are based on a C++ class MTRand by
120 Richard J. Wagner. For more information see the web page at
121 http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html
122
123 Mersenne Twister random number generator -- a C++ class MTRand
124 Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus
125 Richard J. Wagner v1.0 15 May 2003 rjwagner@writeme.com
126
127 The Mersenne Twister is an algorithm for generating random numbers. It
128 was designed with consideration of the flaws in various other generators.
129 The period, 2^19937-1, and the order of equidistribution, 623 dimensions,
130 are far greater. The generator is also fast; it avoids multiplication and
131 division, and it benefits from caches and pipelines. For more information
132 see the inventors' web page at http://www.math.keio.ac.jp/~matumoto/emt.html
133
134 Reference
135 M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally
136 Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on
137 Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30.
138
139 Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
140 Copyright (C) 2000 - 2003, Richard J. Wagner
141 All rights reserved.
142
143 Redistribution and use in source and binary forms, with or without
144 modification, are permitted provided that the following conditions
145 are met:
146
147 1. Redistributions of source code must retain the above copyright
148 notice, this list of conditions and the following disclaimer.
149
150 2. Redistributions in binary form must reproduce the above copyright
151 notice, this list of conditions and the following disclaimer in the
152 documentation and/or other materials provided with the distribution.
153
154 3. The names of its contributors may not be used to endorse or promote
155 products derived from this software without specific prior written
156 permission.
157
158 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
159 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
160 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
161 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
162 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
163 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
164 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
165 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
166 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
167 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
168 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
169
170
171 10. ext/standard/scanf
172 scanf.c --
173
174 This file contains the base code which implements sscanf and by extension
175 fscanf. Original code is from TCL8.3.0 and bears the following copyright:
176
177 This software is copyrighted by the Regents of the University of
178 California, Sun Microsystems, Inc., Scriptics Corporation,
179 and other parties. The following terms apply to all files associated
180 with the software unless explicitly disclaimed in individual files.
181
182 The authors hereby grant permission to use, copy, modify, distribute,
183 and license this software and its documentation for any purpose, provided
184 that existing copyright notices are retained in all copies and that this
185 notice is included verbatim in any distributions. No written agreement,
186 license, or royalty fee is required for any of the authorized uses.
187 Modifications to this software may be copyrighted by their authors
188 and need not follow the licensing terms described here, provided that
189 the new terms are clearly indicated on the first page of each file where
190 they apply.
191
192 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
193 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
194 ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
195 DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
196 POSSIBILITY OF SUCH DAMAGE.
197
198 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
199 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
200 FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
201 IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
202 NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
203 MODIFICATIONS.
204
205 GOVERNMENT USE: If you are acquiring this software on behalf of the
206 U.S. government, the Government shall have only "Restricted Rights"
207 in the software and related documentation as defined in the Federal
208 Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
209 are acquiring the software on behalf of the Department of Defense, the
210 software shall be classified as "Commercial Computer Software" and the
211 Government shall have only "Restricted Rights" as defined in Clause
212 252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
213 authors grant the U.S. Government and others acting in its behalf
214 permission to use and distribute the software in accordance with the
215 terms specified in this license.
216
217 11. ext/standard/strnatcmp.c
218
219 strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
220 Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au>
221
222 This software is provided 'as-is', without any express or implied
223 warranty. In no event will the authors be held liable for any damages
224 arising from the use of this software.
225
226 Permission is granted to anyone to use this software for any purpose,
227 including commercial applications, and to alter it and redistribute it
228 freely, subject to the following restrictions:
229
230 1. The origin of this software must not be misrepresented; you must not
231 claim that you wrote the original software. If you use this software
232 in a product, an acknowledgment in the product documentation would be
233 appreciated but is not required.
234 2. Altered source versions must be plainly marked as such, and must not be
235 misrepresented as being the original software.
236 3. This notice may not be removed or altered from any source distribution.
237
238 12. ext/standard/uuencode
239 Portions of this code are based on Berkeley's uuencode/uudecode
240 implementation.
241
242 Copyright (c) 1983, 1993
243 The Regents of the University of California. All rights reserved.
244
245 Redistribution and use in source and binary forms, with or without
246 modification, are permitted provided that the following conditions
247 are met:
248 1. Redistributions of source code must retain the above copyright
249 notice, this list of conditions and the following disclaimer.
250 2. Redistributions in binary form must reproduce the above copyright
251 notice, this list of conditions and the following disclaimer in the
252 documentation and/or other materials provided with the distribution.
253 3. All advertising materials mentioning features or use of this software
254 must display the following acknowledgement:
255 This product includes software developed by the University of
256 California, Berkeley and its contributors.
257 4. Neither the name of the University nor the names of its contributors
258 may be used to endorse or promote products derived from this software
259 without specific prior written permission.
260
261 THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
262 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
263 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
264 ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
265 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
266 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
267 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
268 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
269 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
270 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
271 SUCH DAMAGE.
272
273
274 13. libxmlrpc ext/xmlrpc
275
276 Copyright 2000 Epinions, Inc.
277
278 Subject to the following 3 conditions, Epinions, Inc. permits you, free
279 of charge, to (a) use, copy, distribute, modify, perform and display this
280 software and associated documentation files (the "Software"), and (b)
281 permit others to whom the Software is furnished to do so as well.
282
283 1) The above copyright notice and this permission notice shall be included
284 without modification in all copies or substantial portions of the
285 Software.
286
287 2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
288 ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
289 IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
290 PURPOSE OR NONINFRINGEMENT.
291
292 3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
293 SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
294 OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
295 NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
296 DAMAGES.
297
298 14. libzip ext/zip
299 zip.h -- exported declarations.
300 Copyright (C) 1999-2009 Dieter Baron and Thomas Klausner
301
302 This file is part of libzip, a library to manipulate ZIP archives.
303 The authors can be contacted at <libzip@nih.at>
304
305 Redistribution and use in source and binary forms, with or without
306 modification, are permitted provided that the following conditions
307 are met:
308 1. Redistributions of source code must retain the above copyright
309 notice, this list of conditions and the following disclaimer.
310 2. Redistributions in binary form must reproduce the above copyright
311 notice, this list of conditions and the following disclaimer in
312 the documentation and/or other materials provided with the
313 distribution.
314 3. The names of the authors may not be used to endorse or promote
315 products derived from this software without specific prior
316 written permission.
317
318 THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
319 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
320 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
321 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
322 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
323 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
324 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
325 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
326 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
327 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
328 IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
329
330 15. main/snprintf.c
331 Copyright (c) 2002, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
332
333 Permission to use, copy, modify, and distribute this software for any
334 purpose with or without fee is hereby granted, provided that the above
335 copyright notice and this permission notice appear in all copies.
336
337 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
338 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
339 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
340 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
341 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
342 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
343 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
344
345 Sponsored in part by the Defense Advanced Research Projects
346 Agency (DARPA) and Air Force Research Laboratory, Air Force
347 Materiel Command, USAF, under agreement number F39502-99-1-0512.
348
349 main/spprintf
350 Copyright (c) 1995-1998 The Apache Group. All rights reserved.
351
352 Redistribution and use in source and binary forms, with or without
353 modification, are permitted provided that the following conditions
354 are met:
355
356 1. Redistributions of source code must retain the above copyright
357 notice, this list of conditions and the following disclaimer.
358
359 2. Redistributions in binary form must reproduce the above copyright
360 notice, this list of conditions and the following disclaimer in
361 the documentation and/or other materials provided with the
362 distribution.
363
364 3. All advertising materials mentioning features or use of this
365 software must display the following acknowledgment:
366 "This product includes software developed by the Apache Group
367 for use in the Apache HTTP server project (http://www.apache.org/)."
368
369 4. The names "Apache Server" and "Apache Group" must not be used to
370 endorse or promote products derived from this software without
371 prior written permission.
372
373 5. Redistributions of any form whatsoever must retain the following
374 acknowledgment:
375 "This product includes software developed by the Apache Group
376 for use in the Apache HTTP server project (http://www.apache.org/)."
377
378 THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
379 EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
380 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
381 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR
382 ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
383 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
384 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
385 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
386 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
387 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
388 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
389 OF THE POSSIBILITY OF SUCH DAMAGE.
390 ====================================================================
391
392 This software consists of voluntary contributions made by many
393 individuals on behalf of the Apache Group and was originally based
394 on public domain software written at the National Center for
395 Supercomputing Applications, University of Illinois, Urbana-Champaign.
396 For more information on the Apache Group and the Apache HTTP server
397 project, please see <http://www.apache.org/>.
398
399 This code is based on, and used with the permission of, the
400 SIO stdio-replacement strx_* functions by Panos Tsirigotis
401 <panos@alumni.cs.colorado.edu> for xinetd.
402
403 16. main/strlcat
404 17. main/strlcpy
405 Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
406 All rights reserved.
407
408 Redistribution and use in source and binary forms, with or without
409 modification, are permitted provided that the following conditions
410 are met:
411 1. Redistributions of source code must retain the above copyright
412 notice, this list of conditions and the following disclaimer.
413 2. Redistributions in binary form must reproduce the above copyright
414 notice, this list of conditions and the following disclaimer in the
415 documentation and/or other materials provided with the distribution.
416 3. The name of the author may not be used to endorse or promote products
417 derived from this software without specific prior written permission.
418
419 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
420 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
421 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
422 THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
423 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
424 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
425 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
426 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
427 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
428 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
429
Something went wrong with that request. Please try again.