xref: /PHP-8.0/.gitignore (revision 5de1cd9e)
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# Used by build/gen_stub.php
84build/PHP-Parser-*
85
86# ------------------------------------------------------------------------------
87# Configuration headers generated by the PHP build system
88# ------------------------------------------------------------------------------
89config.h
90config.h.in
91/ext/date/lib/timelib_config.h
92/main/build-defs.h
93/main/php_config.h.in
94/main/php_config.h
95/Zend/zend_config.h
96
97# ------------------------------------------------------------------------------
98# Manual (man 1 and 8) pages generated from templates for *nix alike systems
99# ------------------------------------------------------------------------------
100/ext/phar/phar.1
101/ext/phar/phar.phar.1
102/sapi/cgi/php-cgi.1
103/sapi/cli/php.1
104/sapi/fpm/php-fpm.1
105/sapi/fpm/php-fpm.8
106/sapi/phpdbg/phpdbg.1
107/scripts/man1/*.1
108
109# ------------------------------------------------------------------------------
110# SAPIs specific ignores
111# ------------------------------------------------------------------------------
112/sapi/apache2handler/libphp.module
113/sapi/fpm/fpm/php-cgi
114/sapi/fpm/init.d.php-fpm
115/sapi/fpm/php-fpm.conf
116/sapi/fpm/php-fpm.service
117/sapi/fpm/status.html
118/sapi/fpm/www.conf
119
120# ------------------------------------------------------------------------------
121# Executable binaries and scripts generated during the build process
122# ------------------------------------------------------------------------------
123/ext/phar/phar.phar
124/ext/phar/phar.php
125/pear/install-pear-nozlib.phar
126/sapi/cgi/php-cgi
127/sapi/fpm/php-fpm
128/sapi/phpdbg/phpdbg
129/scripts/php-config
130/scripts/phpize
131php
132
133# ------------------------------------------------------------------------------
134# Lexer files generated by re2c
135# ------------------------------------------------------------------------------
136/ext/json/json_scanner.c
137/ext/json/php_json_scanner_defs.h
138/ext/pdo/pdo_sql_parser.c
139/ext/phar/phar_path_check.c
140/ext/standard/url_scanner_ex.c
141/ext/standard/var_unserializer.c
142/sapi/phpdbg/phpdbg_lexer.c
143/Zend/zend_ini_scanner.c
144/Zend/zend_ini_scanner_defs.h
145/Zend/zend_language_scanner.c
146/Zend/zend_language_scanner_defs.h
147
148# ------------------------------------------------------------------------------
149# PHP parser files generated by bison during the build process
150# ------------------------------------------------------------------------------
151/ext/json/json_parser.tab.h
152/ext/json/json_parser.tab.c
153/sapi/phpdbg/phpdbg_parser.c
154/sapi/phpdbg/phpdbg_parser.h
155/sapi/phpdbg/phpdbg_parser.output
156/Zend/zend_ini_parser.c
157/Zend/zend_ini_parser.h
158/Zend/zend_ini_parser.output
159/Zend/zend_language_parser.c
160/Zend/zend_language_parser.h
161/Zend/zend_language_parser.output
162
163# ------------------------------------------------------------------------------
164# Extensions files
165# ------------------------------------------------------------------------------
166
167# Miscellaneous extensions files
168/ext/opcache/jit/zend_jit_x86.c
169/ext/opcache/minilua
170
171# Generated by `cd ext/name && phpize && ./configure`
172/ext/*/build/
173/ext/*/configure.ac
174/ext/*/run-tests.php
175
176# ------------------------------------------------------------------------------
177# Generated by Windows build system
178# ------------------------------------------------------------------------------
179
180# Generated by `/buildconf.bat`
181/configure.bat
182/configure.js
183
184# Generated by `/configure.(bat|js)` (architecture dependent)
185/config.nice.bat
186
187# NTS debug build x86
188/Debug/
189
190# ZTS debug build x86
191/Debug_TS/
192
193# NTS build x86
194/Release/
195
196# ZTS build x86
197/Release_TS/
198
199# Generated by x64 compiler, includes Debug, Debug_TS, Release, Release_TS
200/x64/
201
202# Miscellaneous files generated by Windows build system
203/main/config.w32.h
204/win32/build/deplister.exe
205/win32/build/deplister.obj
206/win32/*.aps
207/win32/*.positions
208/win32/*.suo
209/win32/ext
210/win32/syslog.reg
211/win32/wsyslog.h
212
213# Standard object files generated by Visual Studio
214*.obj
215
216# ------------------------------------------------------------------------------
217# Tests
218# ------------------------------------------------------------------------------
219
220# Generated by `./run-tests.php` upon failure
221**/tests/**/*.diff
222**/tests/**/*.out*
223**/tests/**/*.php
224**/tests/**/*.exp
225**/tests/**/*.log
226**/tests/**/*.sh
227
228# Generated by some test cases
229**/tests/**/*.db
230
231# Microsoft Access database created for passing to tests
232/ext/pdo_odbc/tests/*.mdb
233
234# Files generated by `./run-tests.php -m` when checking for memory leaks
235**/tests/**/*.mem
236
237# Test results generated by `./run-tests.php`
238php_test_results_*.txt
239
240# Temporary test information generated by `./run-tests.php`
241/run-test-info.php
242
243# Temporary POST data placeholder files generated by `./run-tests.php`
244phpt.*
245
246# Temporary PHP INI configuration file(s) for tests, generated by `make test`
247tmp-php.ini
248
249# ------------------------------------------------------------------------------
250# Generated by GCC's gcov and LCOV via build/Makefile.gcov and gcov.php.net
251# ------------------------------------------------------------------------------
252*.gcda
253*.gcno
254/gcovr.xml
255/gcovr_html/
256/lcov_html/
257/php_lcov.info
258
259# ------------------------------------------------------------------------------
260# Archives generated during the PHP release process
261# ------------------------------------------------------------------------------
262/*.tar.gz
263/*.tar.bz2
264/*.tar.xz
265/*.tar.gz.asc
266/*.tar.bz2.asc
267/*.tar.xz.asc
268
269# ------------------------------------------------------------------------------
270# Generated by `./configure --enable-dtrace` for using DTrace framework
271# ------------------------------------------------------------------------------
272/ext/oci8/oci8_dtrace_gen.h
273/ext/oci8/oci8_dtrace_gen.h.bak
274/Zend/zend_dtrace_gen.h
275/Zend/zend_dtrace_gen.h.bak
276
277# ------------------------------------------------------------------------------
278# GitHub actions cache
279# ------------------------------------------------------------------------------
280/branch-commit-cache.json
281
282# ------------------------------------------------------------------------------
283# Special cases to invert previous ignore patterns
284# ------------------------------------------------------------------------------
285!/ext/bcmath/libbcmath/src/config.h
286!/ext/fileinfo/libmagic/config.h
287!/ext/fileinfo/libmagic.patch
288!/ext/fileinfo/magicdata.patch
289!/ext/pcre/pcre2lib/config.h
290!/win32/build/Makefile
291