Name Date Size #Lines LOC

..28-Sep-2023-

.github/H11-Nov-2022-

TSRM/H02-Nov-2022-

Zend/H09-Jan-2024-

build/H03-Jun-2022-

docs/H02-Dec-2020-

ext/H02-Dec-2020-

main/H09-Jan-2024-

pear/H02-Dec-2020-

sapi/H02-Dec-2020-

scripts/H02-Dec-2020-

tests/H02-Dec-2020-

travis/H02-Dec-2020-

win32/H01-Mar-2021-

.appveyor.ymlH A D09-Oct-20221.5 KiB5646

.editorconfigH A D02-Dec-2020733 3526

.gdbinitH A D05-Apr-202112.8 KiB646589

.gitattributesH A D02-Dec-2020758 2017

.gitignoreH A D09-Apr-20228.4 KiB291233

.travis.ymlH A D15-Apr-20212.6 KiB9988

CODING_STANDARDS.mdH A D02-Dec-202011.5 KiB321245

CONTRIBUTING.mdH A D19-Dec-202119.6 KiB426343

EXTENSIONSH A D02-Dec-202023.3 KiB517502

LICENSEH A D02-Feb-20213.1 KiB6955

NEWSH A D09-Jan-202453.1 KiB1,5871,244

README.REDIST.BINSH A D02-Dec-202027.9 KiB643496

README.mdH A D04-Jan-20224.8 KiB13791

UPGRADINGH A D31-Dec-202052.4 KiB1,1601,007

UPGRADING.INTERNALSH A D02-Dec-202017.9 KiB462410

buildconfH A D02-Dec-20203.9 KiB138102

buildconf.batH A D02-Dec-2020346 86

configure.acH A D09-Jan-202442.7 KiB1,5881,345

php.ini-developmentH A D10-Nov-202170.7 KiB1,9451,610

php.ini-productionH A D10-Nov-202170.8 KiB1,9471,612

run-tests.phpH A D03-Nov-2022129.5 KiB3,7813,001

README.REDIST.BINS

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

README.md

1<div align="center">
2    <a href="https://php.net">
3        <img
4            alt="PHP"
5            src="https://www.php.net/images/logos/new-php-logo.svg"
6            width="150">
7    </a>
8</div>
9
10# The PHP Interpreter
11
12PHP is a popular general-purpose scripting language that is especially suited to
13web development. Fast, flexible and pragmatic, PHP powers everything from your
14blog to the most popular websites in the world. PHP is distributed under the
15[PHP License v3.01](LICENSE).
16
17[![Build status](https://travis-ci.org/php/php-src.svg?branch=master)](https://travis-ci.org/php/php-src)
18[![Build status](https://ci.appveyor.com/api/projects/status/meyur6fviaxgdwdy/branch/master?svg=true)](https://ci.appveyor.com/project/php/php-src)
19[![Build Status](https://dev.azure.com/phpazuredevops/php/_apis/build/status/php.php-src?branchName=master)](https://dev.azure.com/phpazuredevops/php/_build/latest?definitionId=1&branchName=master)
20[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/php.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:php)
21
22## Documentation
23
24The PHP manual is available at [php.net/docs](https://php.net/docs).
25
26## Installation
27
28### Prebuilt packages and binaries
29
30Prebuilt packages and binaries can be used to get up and running fast with PHP.
31
32For Windows, the PHP binaries can be obtained from
33[windows.php.net](https://windows.php.net). After extracting the archive the
34`*.exe` files are ready to use.
35
36For other systems, see the [installation chapter](https://php.net/install).
37
38### Building PHP source code
39
40*For Windows, see [Build your own PHP on Windows](https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2).*
41
42For a minimal PHP build from Git, you will need autoconf, bison, and re2c. For
43a default build, you will additionally need libxml2 and libsqlite3. On Ubuntu,
44you can install these using:
45
46    sudo apt install -y pkg-config build-essential autoconf bison re2c \
47                        libxml2-dev libsqlite3-dev
48
49Generate configure:
50
51    ./buildconf
52
53Configure your build. `--enable-debug` is recommended for development, see
54`./configure --help` for a full list of options.
55
56    # For development
57    ./configure --enable-debug
58    # For production
59    ./configure
60
61Build PHP. To speed up the build, specify the maximum number of jobs using `-j`:
62
63    make -j4
64
65The number of jobs should usually match the number of available cores, which
66can be determined using `nproc`.
67
68## Testing PHP source code
69
70PHP ships with an extensive test suite, the command `make test` is used after
71successful compilation of the sources to run this test suite.
72
73It is possible to run tests using multiple cores by setting `-jN` in
74`TEST_PHP_ARGS`:
75
76    make TEST_PHP_ARGS=-j4 test
77
78Shall run `make test` with a maximum of 4 concurrent jobs: Generally the maximum
79number of jobs should not exceed the number of cores available.
80
81The [qa.php.net](https://qa.php.net) site provides more detailed info about
82testing and quality assurance.
83
84## Installing PHP built from source
85
86After a successful build (and test), PHP may be installed with:
87
88    make install
89
90Depending on your permissions and prefix, `make install` may need super user
91permissions.
92
93## PHP extensions
94
95Extensions provide additional functionality on top of PHP. PHP consists of many
96essential bundled extensions. Additional extensions can be found in the PHP
97Extension Community Library - [PECL](https://pecl.php.net).
98
99## Contributing
100
101The PHP source code is located in the Git repository at
102[github.com/php/php-src](https://github.com/php/php-src). Contributions are most
103welcome by forking the repository and sending a pull request.
104
105Discussions are done on GitHub, but depending on the topic can also be relayed
106to the official PHP developer mailing list internals@lists.php.net.
107
108New features require an RFC and must be accepted by the developers. See
109[Request for comments - RFC](https://wiki.php.net/rfc) and
110[Voting on PHP features](https://wiki.php.net/rfc/voting) for more information
111on the process.
112
113Bug fixes don't require an RFC. If the bug has a GitHub issue, reference it in
114the commit message using `GH-NNNNNN`. Use `#NNNNNN` for tickets in the old
115[bugs.php.net](https://bugs.php.net) bug tracker.
116
117    Fix GH-7815: php_uname doesn't recognise latest Windows versions
118    Fix #55371: get_magic_quotes_gpc() throws deprecation warning
119
120See [Git workflow](https://wiki.php.net/vcs/gitworkflow) for details on how pull
121requests are merged.
122
123### Guidelines for contributors
124
125See further documents in the repository for more information on how to
126contribute:
127
128- [Contributing to PHP](/CONTRIBUTING.md)
129- [PHP coding standards](/CODING_STANDARDS.md)
130- [Mailinglist rules](/docs/mailinglist-rules.md)
131- [PHP release process](/docs/release-process.md)
132
133## Credits
134
135For the list of people who've put work into PHP, please see the
136[PHP credits page](https://php.net/credits.php).
137