xref: /PHP-8.4/.gitignore (revision 471e94ce)
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# Dependency files generated during build process
45*.dep
46
47# Cache directories created by Autoconf tools
48autom4te.cache/
49
50# Cache file(s) generated by Autoconf's configure when run as `configure -C`
51config.cache
52
53# A log file(s) generated by Autoconf during *nix build system
54config.log
55
56# Helper(s) generated by *nix build system to save the last configure command
57config.nice
58
59# Generated by Autoconf's configure script for instantiating templates
60config.status
61
62# Main *nix build system configuration script(s) generated by Autoconf
63configure
64
65# Generated by `./configure` when test programs create temporary files
66confdefs.h
67conftest*
68
69# Generated by configure scripts on all systems
70/main/internal_functions.c
71/main/internal_functions_cli.c
72
73# The Libtool script(s) generated by the *nix build system
74libtool
75
76# Makefile(s) generated from Makefile fragment templates by `./configure`
77Makefile
78Makefile.fragments
79Makefile.objects
80
81# Directories for shared object files generated by `./configure`
82libs/
83modules/
84
85# Used by build/gen_stub.php
86build/PHP-Parser-*
87
88# ------------------------------------------------------------------------------
89# Configuration headers generated by the PHP build system
90# ------------------------------------------------------------------------------
91config.h
92config.h.in
93/ext/date/lib/timelib_config.h
94/main/build-defs.h
95/main/php_config.h.in
96/main/php_config.h
97/Zend/zend_config.h
98
99# ------------------------------------------------------------------------------
100# Manual (man 1 and 8) pages generated from templates for *nix alike systems
101# ------------------------------------------------------------------------------
102/ext/phar/phar.1
103/ext/phar/phar.phar.1
104/sapi/cgi/php-cgi.1
105/sapi/cli/php.1
106/sapi/fpm/php-fpm.1
107/sapi/fpm/php-fpm.8
108/sapi/phpdbg/phpdbg.1
109/scripts/man1/*.1
110
111# ------------------------------------------------------------------------------
112# SAPIs specific ignores
113# ------------------------------------------------------------------------------
114/sapi/apache2handler/libphp.module
115/sapi/fpm/fpm/php-cgi
116/sapi/fpm/init.d.php-fpm
117/sapi/fpm/php-fpm.conf
118/sapi/fpm/php-fpm.service
119/sapi/fpm/status.html
120/sapi/fpm/www.conf
121
122# ------------------------------------------------------------------------------
123# Executable binaries and scripts generated during the build process
124# ------------------------------------------------------------------------------
125/ext/phar/phar.phar
126/ext/phar/phar.php
127/pear/install-pear-nozlib.phar
128/sapi/cgi/php-cgi
129/sapi/fpm/php-fpm
130/sapi/phpdbg/phpdbg
131/scripts/php-config
132/scripts/phpize
133php
134
135# ------------------------------------------------------------------------------
136# Lexer files generated by re2c
137# ------------------------------------------------------------------------------
138/ext/json/json_scanner.c
139/ext/json/php_json_scanner_defs.h
140/ext/pdo*/*_sql_parser.c
141/ext/phar/phar_path_check.c
142/ext/standard/url_scanner_ex.c
143/ext/standard/var_unserializer.c
144/sapi/phpdbg/phpdbg_lexer.c
145/Zend/zend_ini_scanner.c
146/Zend/zend_ini_scanner_defs.h
147/Zend/zend_language_scanner.c
148/Zend/zend_language_scanner_defs.h
149
150# ------------------------------------------------------------------------------
151# PHP parser files generated by bison during the build process
152# ------------------------------------------------------------------------------
153/ext/json/json_parser.tab.h
154/ext/json/json_parser.tab.c
155/sapi/phpdbg/phpdbg_parser.c
156/sapi/phpdbg/phpdbg_parser.h
157/sapi/phpdbg/phpdbg_parser.output
158/Zend/zend_ini_parser.c
159/Zend/zend_ini_parser.h
160/Zend/zend_ini_parser.output
161/Zend/zend_language_parser.c
162/Zend/zend_language_parser.h
163/Zend/zend_language_parser.output
164
165# ------------------------------------------------------------------------------
166# Extensions files
167# ------------------------------------------------------------------------------
168
169# Miscellaneous extensions files
170/ext/fileinfo/libmagic.orig/
171/ext/opcache/jit/zend_jit_x86.c
172/ext/opcache/jit/zend_jit_arm64.c
173/ext/opcache/minilua
174
175# Generated by `cd ext/name && phpize && ./configure`
176/ext/*/build/
177/ext/*/configure.ac
178/ext/*/run-tests.php
179
180# Generated by ./configure if libc might be musl
181/ext/gettext/tests/locale/en_US
182
183# ------------------------------------------------------------------------------
184# Generated by Windows build system
185# ------------------------------------------------------------------------------
186
187# Generated by `/buildconf.bat`
188/configure.bat
189/configure.js
190
191# Generated by `/configure.(bat|js)` (architecture dependent)
192/config.nice.bat
193
194# NTS debug build x86
195/Debug/
196
197# ZTS debug build x86
198/Debug_TS/
199
200# NTS build x86
201/Release/
202
203# ZTS build x86
204/Release_TS/
205
206# Generated by x64 compiler, includes Debug, Debug_TS, Release, Release_TS
207/x64/
208
209# Generated by arm64 compiler, includes Debug, Debug_TS, Release, Release_TS
210/arm64/
211
212# Miscellaneous files generated by Windows build system
213/main/config.w32.h
214/win32/build/deplister.exe
215/win32/build/deplister.obj
216/win32/*.aps
217/win32/*.positions
218/win32/*.suo
219/win32/ext
220/win32/syslog.reg
221/win32/wsyslog.h
222
223# Standard object files generated by Visual Studio
224*.obj
225
226# ------------------------------------------------------------------------------
227# Tests
228# ------------------------------------------------------------------------------
229
230# Generated by `./run-tests.php` upon failure
231**/tests/**/*.diff
232**/tests/**/*.out*
233**/tests/**/*.php
234**/tests/**/*.exp
235**/tests/**/*.log
236**/tests/**/*.sh
237
238# Generated by some test cases
239**/tests/**/*.db
240
241# Microsoft Access database created for passing to tests
242/ext/pdo_odbc/tests/*.mdb
243
244# Files generated by `./run-tests.php -m` when checking for memory leaks
245**/tests/**/*.mem
246
247# Test results generated by `./run-tests.php`
248php_test_results_*.txt
249
250# Temporary test information generated by `./run-tests.php`
251/run-test-info.php
252
253# Temporary POST data placeholder files generated by `./run-tests.php`
254phpt.*
255
256# Temporary PHP INI configuration file(s) for tests, generated by `make test`
257tmp-php.ini
258
259# ------------------------------------------------------------------------------
260# Generated by GCC's gcov and LCOV via build/Makefile.gcov
261# ------------------------------------------------------------------------------
262*.gcda
263*.gcno
264/gcovr.xml
265/gcovr_html/
266/lcov_html/
267/php_lcov.info
268
269# ------------------------------------------------------------------------------
270# Archives generated during the PHP release process
271# ------------------------------------------------------------------------------
272/*.manifest
273/*.tar.gz
274/*.tar.bz2
275/*.tar.xz
276/*.tar.gz.asc
277/*.tar.bz2.asc
278/*.tar.xz.asc
279
280# ------------------------------------------------------------------------------
281# Generated by `./configure --enable-dtrace` for using DTrace framework
282# ------------------------------------------------------------------------------
283/Zend/zend_dtrace_gen.h
284/Zend/zend_dtrace_gen.h.bak
285
286# ------------------------------------------------------------------------------
287# GitHub actions cache
288# ------------------------------------------------------------------------------
289/branch-commit-cache.json
290/junit.out.xml
291/.ccache/
292
293# ------------------------------------------------------------------------------
294# Special cases to invert previous ignore patterns
295# ------------------------------------------------------------------------------
296!/ext/bcmath/libbcmath/src/config.h
297!/ext/fileinfo/libmagic/config.h
298!/ext/fileinfo/libmagic.patch
299!/ext/fileinfo/magicdata.patch
300!/ext/dom/lexbor/patches/*.patch
301!/ext/pcre/pcre2lib/config.h
302!/win32/build/Makefile
303