Name Date Size #Lines LOC

..30-Aug-2022-

.github/H11-Nov-2022-

TSRM/H02-Nov-2022-

Zend/H05-Dec-2022-

appveyor/H09-Oct-2022-

build/H15-Nov-2022-

docs/H28-Nov-2022-

ext/H30-Aug-2022-

main/H28-Nov-2022-

pear/H30-Aug-2022-

sapi/H30-Aug-2022-

scripts/H30-Aug-2022-

tests/H30-Aug-2022-

travis/H30-Aug-2022-

win32/H28-Nov-2022-

.appveyor.ymlH A D09-Oct-20221.5 KiB5646

.cirrus.ymlH A D14-Sep-20226 KiB205202

.editorconfigH A D30-Aug-2022738 3526

.gdbinitH A D30-Aug-202213 KiB656599

.gitattributesH A D30-Aug-2022910 2622

.gitignoreH A D30-Aug-20228.6 KiB298238

.travis.ymlH A D25-Sep-20222.3 KiB9786

CODING_STANDARDS.mdH A D21-Oct-202210.7 KiB300227

CONTRIBUTING.mdH A D30-Aug-202220 KiB430348

EXTENSIONSH A D30-Aug-202223.7 KiB525510

LICENSEH A D30-Aug-20223.1 KiB6955

NEWSH A D18-Nov-20222.7 KiB7660

README.REDIST.BINSH A D10-Nov-202229.5 KiB681526

README.mdH A D30-Aug-20225.1 KiB14394

UPGRADINGH A D15-Nov-20223.4 KiB12698

UPGRADING.INTERNALSH A D08-Oct-2022794 3826

buildconfH A D30-Aug-20223.9 KiB138102

buildconf.batH A D30-Aug-2022346 86

configure.acH A D18-Nov-202250.3 KiB1,8381,579

php.ini-developmentH A D01-Dec-202271.6 KiB1,9721,631

php.ini-productionH A D01-Dec-202271.8 KiB1,9741,633

run-tests.phpH A D03-Nov-2022136.1 KiB4,0653,399

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

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