Name Date Size #Lines LOC

..31-Aug-2021-

.github/H08-Jun-2022-

TSRM/H10-Jun-2022-

Zend/H26-Jun-2022-

appveyor/H10-Jun-2022-

azure/H24-Jun-2022-

build/H21-Jun-2022-

docs/H21-Jun-2022-

ext/H06-May-2022-

main/HToday-

pear/H05-Dec-2019-

sapi/H05-Dec-2019-

scripts/H17-Jun-2022-

tests/H25-Feb-2021-

travis/H06-May-2022-

win32/H01-Jun-2022-

.appveyor.ymlH A D05-Dec-20191.5 KiB6150

.cirrus.ymlH A D06-May-20221.6 KiB2926

.editorconfigH A D05-Dec-2019733 3526

.gdbinitH A D05-Apr-202112.8 KiB646589

.gitattributesH A D12-Jun-2022910 2622

.gitignoreH A D09-Apr-20228.5 KiB294235

.travis.ymlH A D16-Jun-20212.3 KiB9786

CODING_STANDARDS.mdH A D17-Jun-202110.9 KiB302229

CONTRIBUTING.mdH A D12-May-202219.9 KiB429347

EXTENSIONSH A D19-Jan-202223.3 KiB517502

LICENSEH A D19-Mar-20223.1 KiB6955

NEWSH A D23-Jun-20224.9 KiB135107

README.REDIST.BINSH A D15-Dec-202127.9 KiB644497

README.mdH A D04-Jan-20225 KiB14293

UPGRADINGH A D19-Jun-202216.6 KiB465407

UPGRADING.INTERNALSH A D26-Jun-20223 KiB7863

azure-pipelines.ymlH A D24-Jun-20222.2 KiB7471

buildconfH A D05-Dec-20193.9 KiB138102

buildconf.batH A D30-Jan-2020346 86

configure.acH A DToday48.3 KiB1,7681,513

php.ini-developmentH A D12-Nov-202171.3 KiB1,9561,619

php.ini-productionH A D11-Dec-202171.5 KiB1,9581,621

run-tests.phpH A D08-Jun-2022133.8 KiB3,9933,337

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

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