xref: /PHP-7.4/.gitignore (revision db54b0fa)
1# These files are generated during building or development and are intentionally
2# untracked to ignore by Git. For other development environment specific files,
3# such as editor configuration, a good practice is to exclude them using the
4# .git/info/exclude in the cloned repository or a global .gitignore file.
5
6# ------------------------------------------------------------------------------
7# Common files ignored across the repository
8# ------------------------------------------------------------------------------
9
10# Backup copies created by various editors or development tools
11*~
12
13# Patches downloaded to patch files or to apply open source contributions
14*.patch
15
16# Swap files created by editors and tools to indicate a locked file
17*.swp
18
19# Various temporary generated files
20*.tmp
21
22# ------------------------------------------------------------------------------
23# Generated by the PHP build system
24# ------------------------------------------------------------------------------
25
26# Archive library containing .o files, generated during build process
27*.a
28
29# Libtool library files generated during build process
30*.la
31
32# Directories created by Libtool for storing generated library files
33.libs/
34
35# Library object files generated during build process
36*.lo
37
38# Temporary library object files generated by compiler and libtool due to failure
39*.loT
40
41# Standard object files generated during build process
42*.o
43
44# Cache directories created by Autoconf tools
45autom4te.cache/
46
47# Cache file(s) generated by Autoconf's configure when run as `configure -C`
48config.cache
49
50# A log file(s) generated by Autoconf during *nix build system
51config.log
52
53# Helper(s) generated by *nix build system to save the last configure command
54config.nice
55
56# Generated by Autoconf's configure script for instantiating templates
57config.status
58
59# Main *nix build system configuration script(s) generated by Autoconf
60configure
61
62# Generated by `./configure` when test programs create temporary files
63confdefs.h
64conftest*
65
66# Generated by configure scripts on all systems
67/main/internal_functions.c
68/main/internal_functions_cli.c
69
70# The Libtool script(s) generated by the *nix build system
71libtool
72
73# Makefile(s) generated from Makefile fragment templates by `./configure`
74Makefile
75Makefile.fragments
76Makefile.objects
77
78# Directories for shared object files and headers generated by `./configure`
79include/
80libs/
81modules/
82
83# ------------------------------------------------------------------------------
84# Configuration headers generated by the PHP build system
85# ------------------------------------------------------------------------------
86config.h
87config.h.in
88/ext/date/lib/timelib_config.h
89/ext/iconv/php_have_bsd_iconv.h
90/ext/iconv/php_have_glibc_iconv.h
91/ext/iconv/php_have_ibm_iconv.h
92/ext/iconv/php_have_iconv.h
93/ext/iconv/php_have_libiconv.h
94/ext/iconv/php_iconv_aliased_libiconv.h
95/ext/iconv/php_iconv_broken_ignore.h
96/ext/iconv/php_iconv_supports_errno.h
97/ext/iconv/php_php_iconv_h_path.h
98/ext/iconv/php_php_iconv_impl.h
99/main/build-defs.h
100/main/php_config.h.in
101/main/php_config.h
102/Zend/zend_config.h
103
104# ------------------------------------------------------------------------------
105# Manual (man 1 and 8) pages generated from templates for *nix alike systems
106# ------------------------------------------------------------------------------
107/ext/phar/phar.1
108/ext/phar/phar.phar.1
109/sapi/cgi/php-cgi.1
110/sapi/cli/php.1
111/sapi/fpm/php-fpm.1
112/sapi/fpm/php-fpm.8
113/sapi/phpdbg/phpdbg.1
114/scripts/man1/*.1
115
116# ------------------------------------------------------------------------------
117# SAPIs specific ignores
118# ------------------------------------------------------------------------------
119/sapi/apache2handler/libphp7.module
120/sapi/fpm/fpm/php-cgi
121/sapi/fpm/init.d.php-fpm
122/sapi/fpm/php-fpm.conf
123/sapi/fpm/php-fpm.service
124/sapi/fpm/status.html
125/sapi/fpm/www.conf
126
127# ------------------------------------------------------------------------------
128# Executable binaries and scripts generated during the build process
129# ------------------------------------------------------------------------------
130/ext/phar/phar.phar
131/ext/phar/phar.php
132/pear/install-pear-nozlib.phar
133/sapi/cgi/php-cgi
134/sapi/fpm/php-fpm
135/sapi/phpdbg/phpdbg
136/scripts/php-config
137/scripts/phpize
138php
139
140# ------------------------------------------------------------------------------
141# Lexer files generated by re2c
142# ------------------------------------------------------------------------------
143/ext/json/json_scanner.c
144/ext/json/php_json_scanner_defs.h
145/ext/pdo/pdo_sql_parser.c
146/ext/phar/phar_path_check.c
147/ext/standard/url_scanner_ex.c
148/ext/standard/var_unserializer.c
149/sapi/phpdbg/phpdbg_lexer.c
150/Zend/zend_ini_scanner.c
151/Zend/zend_ini_scanner_defs.h
152/Zend/zend_language_scanner.c
153/Zend/zend_language_scanner_defs.h
154
155# ------------------------------------------------------------------------------
156# PHP parser files generated by bison during the build process
157# ------------------------------------------------------------------------------
158/ext/json/json_parser.tab.h
159/ext/json/json_parser.tab.c
160/sapi/phpdbg/phpdbg_parser.c
161/sapi/phpdbg/phpdbg_parser.h
162/sapi/phpdbg/phpdbg_parser.output
163/Zend/zend_ini_parser.c
164/Zend/zend_ini_parser.h
165/Zend/zend_ini_parser.output
166/Zend/zend_language_parser.c
167/Zend/zend_language_parser.h
168/Zend/zend_language_parser.output
169
170# ------------------------------------------------------------------------------
171# Extensions files additionally generated by `cd ext/name && phpize && ./configure`
172# ------------------------------------------------------------------------------
173/ext/*/build/
174/ext/*/configure.ac
175/ext/*/run-tests.php
176
177# ------------------------------------------------------------------------------
178# Generated by Windows build system
179# ------------------------------------------------------------------------------
180
181# Generated by `/buildconf.bat`
182/configure.bat
183/configure.js
184
185# Generated by `/configure.(bat|js)` (architecture dependend)
186/config.nice.bat
187
188# NTS debug build x86
189/Debug/
190
191# ZTS debug build x86
192/Debug_TS/
193
194# NTS build x86
195/Release/
196
197# ZTS build x86
198/Release_TS/
199
200# Generated by x64 compiler, includes Debug, Debug_TS, Release, Release_TS
201/x64/
202
203# Miscellaneous files generated by Windows build sytem
204/main/config.w32.h
205/win32/build/deplister.exe
206/win32/build/deplister.obj
207/win32/*.aps
208/win32/*.positions
209/win32/*.suo
210/win32/ext
211/win32/syslog.reg
212/win32/wsyslog.h
213
214# Standard object files generated by Visual Studio
215*.obj
216
217# ------------------------------------------------------------------------------
218# Tests
219# ------------------------------------------------------------------------------
220
221# Generated by `./run-tests.php` upon failure
222**/tests/**/*.diff
223**/tests/**/*.out*
224**/tests/**/*.php
225**/tests/**/*.exp
226**/tests/**/*.log
227**/tests/**/*.sh
228
229# Generated by some test cases
230**/tests/**/*.db
231
232# Microsoft Access database created for passing to tests
233/ext/pdo_odbc/tests/*.mdb
234
235# Files generated by `./run-tests.php -m` when checking for memory leaks
236**/tests/**/*.mem
237
238# Test results generated by `./run-tests.php`
239php_test_results_*.txt
240
241# Temporary POST data placeholder files generated by `./run-tests.php`
242phpt.*
243
244# Temporary PHP INI configuration file(s) for tests, generated by `make test`
245tmp-php.ini
246
247# ------------------------------------------------------------------------------
248# Generated by GCC's gcov and LCOV via build/Makefile.gcov and gcov.php.net
249# ------------------------------------------------------------------------------
250*.gcda
251*.gcno
252/gcovr.xml
253/gcovr_html/
254/lcov_html/
255/php_lcov.info
256
257# ------------------------------------------------------------------------------
258# Archives generated during the PHP release process
259# ------------------------------------------------------------------------------
260/*.tar.gz
261/*.tar.bz2
262/*.tar.xz
263/*.tar.gz.asc
264/*.tar.bz2.asc
265/*.tar.xz.asc
266
267# ------------------------------------------------------------------------------
268# Generated by `./configure --enable-dtrace` for using DTrace framework
269# ------------------------------------------------------------------------------
270/ext/oci8/oci8_dtrace_gen.h
271/ext/oci8/oci8_dtrace_gen.h.bak
272/Zend/zend_dtrace_gen.h
273/Zend/zend_dtrace_gen.h.bak
274
275# ------------------------------------------------------------------------------
276# Special cases to invert previous ignore patterns
277# ------------------------------------------------------------------------------
278!/ext/bcmath/libbcmath/src/config.h
279!/ext/fileinfo/libmagic/config.h
280!/ext/fileinfo/libmagic.patch
281!/ext/fileinfo/magicdata.patch
282!/ext/pcre/pcre2lib/config.h
283!/win32/build/Makefile
284