|
1 Oracle elects to use only the GNU Lesser General Public License version |
|
2 2.1 (LGPL)/GNU General Public License version 2 (GPL) for any software |
|
3 where a choice of LGPL/GPL license versions are made available with the |
|
4 language indicating that LGPLv2.1/GPLv2 or any later version may be |
|
5 used, or where a choice of which version of the LGPL/GPL is applied is |
|
6 unspecified. Unless specifically stated otherwise, where a choice |
|
7 exists between another license and either the GPL or the LGPL, Oracle |
|
8 chooses the other license. |
|
9 ==================================================================== |
|
10 |
|
11 |
|
12 /* |
|
13 * -------------------------------------------------------------------- |
|
14 * The PHP License, version 3.01 |
|
15 * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
|
16 * -------------------------------------------------------------------- |
|
17 * |
|
18 * Redistribution and use in source and binary forms, with or without |
|
19 * modification, is permitted provided that the following conditions |
|
20 * are met: |
|
21 * |
|
22 * 1. Redistributions of source code must retain the above copyright |
|
23 * notice, this list of conditions and the following disclaimer. |
|
24 * |
|
25 * 2. Redistributions in binary form must reproduce the above copyright |
|
26 * notice, this list of conditions and the following disclaimer in |
|
27 * the documentation and/or other materials provided with the |
|
28 * distribution. |
|
29 * |
|
30 * 3. The name "PHP" must not be used to endorse or promote products |
|
31 * derived from this software without prior written permission. For |
|
32 * written permission, please contact [email protected]. |
|
33 * |
|
34 * 4. Products derived from this software may not be called "PHP", nor |
|
35 * may "PHP" appear in their name, without prior written permission |
|
36 * from [email protected]. You may indicate that your software works in |
|
37 * conjunction with PHP by saying "Foo for PHP" instead of calling |
|
38 * it "PHP Foo" or "phpfoo" |
|
39 * |
|
40 * 5. The PHP Group may publish revised and/or new versions of the |
|
41 * license from time to time. Each version will be given a |
|
42 * distinguishing version number. |
|
43 * Once covered code has been published under a particular version |
|
44 * of the license, you may always continue to use it under the terms |
|
45 * of that version. You may also choose to use such covered code |
|
46 * under the terms of any subsequent version of the license |
|
47 * published by the PHP Group. No one other than the PHP Group has |
|
48 * the right to modify the terms applicable to covered code created |
|
49 * under this License. |
|
50 * |
|
51 * 6. Redistributions of any form whatsoever must retain the following |
|
52 * acknowledgment: |
|
53 * "This product includes PHP software, freely available from |
|
54 * <http://www.php.net/software/>". |
|
55 * |
|
56 * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
|
57 * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
|
58 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
|
59 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
|
60 * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
|
61 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|
62 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
|
63 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|
64 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
|
65 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
66 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
|
67 * OF THE POSSIBILITY OF SUCH DAMAGE. |
|
68 * |
|
69 * -------------------------------------------------------------------- |
|
70 * |
|
71 * This software consists of voluntary contributions made by many |
|
72 * individuals on behalf of the PHP Group. |
|
73 * |
|
74 * The PHP Group can be contacted via Email at [email protected]. |
|
75 * |
|
76 * For more information on the PHP Group and the PHP project, |
|
77 * please see <http://www.php.net>. |
|
78 * |
|
79 * PHP includes the Zend Engine, freely available at |
|
80 * <http://www.zend.com>. |
|
81 */ |
|
82 |
|
83 /* |
|
84 * +----------------------------------------------------------------------+ |
|
85 * | PHP Version 4 | |
|
86 * +----------------------------------------------------------------------+ |
|
87 * | Copyright (c) 1997-2003 The PHP Group | |
|
88 * +----------------------------------------------------------------------+ |
|
89 * | This source file is subject to version 2.02 of the PHP license, | |
|
90 * | that is bundled with this package in the file LICENSE, and is | |
|
91 * | available at through the world-wide-web at | |
|
92 * | http://www.php.net/license/2_02.txt. | |
|
93 * | If you did not receive a copy of the PHP license and are unable to | |
|
94 * | obtain it through the world-wide-web, please send a note to | |
|
95 * | [email protected] so we can mail you a copy immediately. | |
|
96 * +----------------------------------------------------------------------+ |
|
97 * | Author: Marcin Gibula <[email protected]> | |
|
98 * +----------------------------------------------------------------------+ |
|
99 * |
|
100 * |
|
101 */ |
|
102 |
|
103 /* |
|
104 * +----------------------------------------------------------------------+ |
|
105 * | PHP Version 5 | |
|
106 * +----------------------------------------------------------------------+ |
|
107 * | Copyright (c) 1997-2005 The PHP Group | |
|
108 * +----------------------------------------------------------------------+ |
|
109 * | This source file is subject to version 3.0 of the PHP license, | |
|
110 * | that is bundled with this package in the file LICENSE, and is | |
|
111 * | available through the world-wide-web at the following url: | |
|
112 * | http://www.php.net/license/3_0.txt. | |
|
113 * | If you did not receive a copy of the PHP license and are unable to | |
|
114 * | obtain it through the world-wide-web, please send a note to | |
|
115 * | [email protected] so we can mail you a copy immediately. | |
|
116 * +----------------------------------------------------------------------+ |
|
117 * | Author: Wez Furlong <[email protected]> | |
|
118 * +----------------------------------------------------------------------+ |
|
119 */ |
|
120 |
|
121 /* |
|
122 * |
|
123 * |
|
124 * GNU LESSER GENERAL PUBLIC LICENSE |
|
125 * Version 2.1, February 1999 |
|
126 * |
|
127 * Copyright (C) 1991, 1999 Free Software Foundation, Inc. |
|
128 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
129 * Everyone is permitted to copy and distribute verbatim copies |
|
130 * of this license document, but changing it is not allowed. |
|
131 * |
|
132 * [This is the first released version of the Lesser GPL. It also counts |
|
133 * as the successor of the GNU Library Public License, version 2, hence |
|
134 * the version number 2.1.] |
|
135 * |
|
136 * Preamble |
|
137 * |
|
138 * The licenses for most software are designed to take away your |
|
139 * freedom to share and change it. By contrast, the GNU General Public |
|
140 * Licenses are intended to guarantee your freedom to share and change |
|
141 * free software--to make sure the software is free for all its users. |
|
142 * |
|
143 * This license, the Lesser General Public License, applies to some |
|
144 * specially designated software packages--typically libraries--of the |
|
145 * Free Software Foundation and other authors who decide to use it. You |
|
146 * can use it too, but we suggest you first think carefully about whether |
|
147 * this license or the ordinary General Public License is the better |
|
148 * strategy to use in any particular case, based on the explanations below. |
|
149 * |
|
150 * When we speak of free software, we are referring to freedom of use, |
|
151 * not price. Our General Public Licenses are designed to make sure that |
|
152 * you have the freedom to distribute copies of free software (and charge |
|
153 * for this service if you wish); that you receive source code or can get |
|
154 * it if you want it; that you can change the software and use pieces of |
|
155 * it in new free programs; and that you are informed that you can do |
|
156 * these things. |
|
157 * |
|
158 * To protect your rights, we need to make restrictions that forbid |
|
159 * distributors to deny you these rights or to ask you to surrender these |
|
160 * rights. These restrictions translate to certain responsibilities for |
|
161 * you if you distribute copies of the library or if you modify it. |
|
162 * |
|
163 * For example, if you distribute copies of the library, whether gratis |
|
164 * or for a fee, you must give the recipients all the rights that we gave |
|
165 * you. You must make sure that they, too, receive or can get the source |
|
166 * code. If you link other code with the library, you must provide |
|
167 * complete object files to the recipients, so that they can relink them |
|
168 * with the library after making changes to the library and recompiling |
|
169 * it. And you must show them these terms so they know their rights. |
|
170 * |
|
171 * We protect your rights with a two-step method: (1) we copyright the |
|
172 * library, and (2) we offer you this license, which gives you legal |
|
173 * permission to copy, distribute and/or modify the library. |
|
174 * |
|
175 * To protect each distributor, we want to make it very clear that |
|
176 * there is no warranty for the free library. Also, if the library is |
|
177 * modified by someone else and passed on, the recipients should know |
|
178 * that what they have is not the original version, so that the original |
|
179 * author's reputation will not be affected by problems that might be |
|
180 * introduced by others. |
|
181 * |
|
182 * Finally, software patents pose a constant threat to the existence of |
|
183 * any free program. We wish to make sure that a company cannot |
|
184 * effectively restrict the users of a free program by obtaining a |
|
185 * restrictive license from a patent holder. Therefore, we insist that |
|
186 * any patent license obtained for a version of the library must be |
|
187 * consistent with the full freedom of use specified in this license. |
|
188 * |
|
189 * Most GNU software, including some libraries, is covered by the |
|
190 * ordinary GNU General Public License. This license, the GNU Lesser |
|
191 * General Public License, applies to certain designated libraries, and |
|
192 * is quite different from the ordinary General Public License. We use |
|
193 * this license for certain libraries in order to permit linking those |
|
194 * libraries into non-free programs. |
|
195 * |
|
196 * When a program is linked with a library, whether statically or using |
|
197 * a shared library, the combination of the two is legally speaking a |
|
198 * combined work, a derivative of the original library. The ordinary |
|
199 * General Public License therefore permits such linking only if the |
|
200 * entire combination fits its criteria of freedom. The Lesser General |
|
201 * Public License permits more lax criteria for linking other code with |
|
202 * the library. |
|
203 * |
|
204 * We call this license the "Lesser" General Public License because it |
|
205 * does Less to protect the user's freedom than the ordinary General |
|
206 * Public License. It also provides other free software developers Less |
|
207 * of an advantage over competing non-free programs. These disadvantages |
|
208 * are the reason we use the ordinary General Public License for many |
|
209 * libraries. However, the Lesser license provides advantages in certain |
|
210 * special circumstances. |
|
211 * |
|
212 * For example, on rare occasions, there may be a special need to |
|
213 * encourage the widest possible use of a certain library, so that it becomes |
|
214 * a de-facto standard. To achieve this, non-free programs must be |
|
215 * allowed to use the library. A more frequent case is that a free |
|
216 * library does the same job as widely used non-free libraries. In this |
|
217 * case, there is little to gain by limiting the free library to free |
|
218 * software only, so we use the Lesser General Public License. |
|
219 * |
|
220 * In other cases, permission to use a particular library in non-free |
|
221 * programs enables a greater number of people to use a large body of |
|
222 * free software. For example, permission to use the GNU C Library in |
|
223 * non-free programs enables many more people to use the whole GNU |
|
224 * operating system, as well as its variant, the GNU/Linux operating |
|
225 * system. |
|
226 * |
|
227 * Although the Lesser General Public License is Less protective of the |
|
228 * users' freedom, it does ensure that the user of a program that is |
|
229 * linked with the Library has the freedom and the wherewithal to run |
|
230 * that program using a modified version of the Library. |
|
231 * |
|
232 * The precise terms and conditions for copying, distribution and |
|
233 * modification follow. Pay close attention to the difference between a |
|
234 * "work based on the library" and a "work that uses the library". The |
|
235 * former contains code derived from the library, whereas the latter must |
|
236 * be combined with the library in order to run. |
|
237 * |
|
238 * GNU LESSER GENERAL PUBLIC LICENSE |
|
239 * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
240 * |
|
241 * 0. This License Agreement applies to any software library or other |
|
242 * program which contains a notice placed by the copyright holder or |
|
243 * other authorized party saying it may be distributed under the terms of |
|
244 * this Lesser General Public License (also called "this License"). |
|
245 * Each licensee is addressed as "you". |
|
246 * |
|
247 * A "library" means a collection of software functions and/or data |
|
248 * prepared so as to be conveniently linked with application programs |
|
249 * (which use some of those functions and data) to form executables. |
|
250 * |
|
251 * The "Library", below, refers to any such software library or work |
|
252 * which has been distributed under these terms. A "work based on the |
|
253 * Library" means either the Library or any derivative work under |
|
254 * copyright law: that is to say, a work containing the Library or a |
|
255 * portion of it, either verbatim or with modifications and/or translated |
|
256 * straightforwardly into another language. (Hereinafter, translation is |
|
257 * included without limitation in the term "modification".) |
|
258 * |
|
259 * "Source code" for a work means the preferred form of the work for |
|
260 * making modifications to it. For a library, complete source code means |
|
261 * all the source code for all modules it contains, plus any associated |
|
262 * interface definition files, plus the scripts used to control compilation |
|
263 * and installation of the library. |
|
264 * |
|
265 * Activities other than copying, distribution and modification are not |
|
266 * covered by this License; they are outside its scope. The act of |
|
267 * running a program using the Library is not restricted, and output from |
|
268 * such a program is covered only if its contents constitute a work based |
|
269 * on the Library (independent of the use ofin a given copy, it is irreversible |
|
270 * for that copy, so the ordinary GNU General Public License applies to all |
|
271 * subsequent copies and derivative works made from that copy. |
|
272 * |
|
273 * This option is useful when you wish to copy part of the code of |
|
274 * the Library into a program that is not a library. |
|
275 * |
|
276 * 4. You may copy and distribute the Library (or a portion or |
|
277 * derivative of it, under Section 2) in object code or executable form |
|
278 * under the terms of Sections 1 and 2 above provided that you accompany |
|
279 * it with the complete corat this requirement contradicts the license |
|
280 * restrictions of other proprietary libraries that do not normally |
|
281 * accompany the operating system. Such a contradiction means you cannot |
|
282 * use both them and the Library together in an executable that you |
|
283 * distribute. |
|
284 * |
|
285 * 7. You may place library facilities that are a work based on the |
|
286 * Library side-by-side in a single library together with other library |
|
287 * facilities not covered by this License, and distribute such a combined |
|
288 * library, provided that the separate distribution of the work based on |
|
289 * the Library and of the other library facilities is otherwise |
|
290 * permitted, and provided that you do these two things: |
|
291 * |
|
292 * a) Accompany the combined library with a copy of the same work |
|
293 * based on the Library, uncombined with any other library |
|
294 * facilities. This must be distributed under the terms of the |
|
295 * Sections above. |
|
296 * |
|
297 * b) Give prominent notice with the combined library of the fact |
|
298 * that part of it is a work based on the Library, and explaining |
|
299 * where to find the accstribution conditions are incompatible with these, |
|
300 * write to the author to ask for permission. For software which is |
|
301 * copyrighted by the Free Software Foundation, write to the Free |
|
302 * Software Foundation; we sometimes make exceptions for this. Our |
|
303 * decision will be guided by the two goals of preserving the free status |
|
304 * of all derivatives of our free software and of promoting the sharing |
|
305 * and reuse of software generally. |
|
306 * |
|
307 * NO WARRANTY |
|
308 * |
|
309 * 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
|
310 * WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
|
311 * EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
|
312 * OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |
|
313 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
|
314 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
315 * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
|
316 * LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |
|
317 * THE COST OF ALL NECESSARY SERVICING, REPAI |
|
318 */ |