Skip to content

Force macOS to use statfs. #8054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4,546 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4546 commits
Select commit Hold shift + click to select a range
9a59417
[skip ci] Document how to quickly check if jit .dasc files transpile,…
TysonAndre Dec 19, 2021
a000af6
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 19, 2021
2f7cd46
Merge branch 'PHP-8.1'
cmb69 Dec 19, 2021
3859bff
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 19, 2021
107b311
[ci skip] Merge branch 'PHP-8.1'
cmb69 Dec 19, 2021
29696dd
Add triage label when removing feedback label
nikic Dec 19, 2021
c8d10a8
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 20, 2021
6b60dc2
Merge branch 'PHP-8.1'
dstogov Dec 20, 2021
3e84217
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 20, 2021
5c1fc01
Merge branch 'PHP-8.1'
dstogov Dec 20, 2021
ca3f7b0
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 20, 2021
e4cf3f7
Merge branch 'PHP-8.1'
dstogov Dec 20, 2021
069bbf3
Fix zend_fibers.c build with ZEND_FIBER_UCONTEXT
psumbera Dec 14, 2021
04b9049
Merge branch 'PHP-8.1'
cmb69 Dec 20, 2021
3414ae6
sockets: add SO_INCOMING_CPU constant
devnexen Dec 10, 2021
32e2d97
Allow internal functions to declare if they support compile-time eval…
TysonAndre Dec 20, 2021
d4920f4
Move ctype test out from Zend and into ctype extension
Girgias Dec 20, 2021
f07c193
mb_convert_encoding will not auto-detect input string as UUEncode, Ba…
alexdowad Dec 5, 2021
edc6b75
Merge branch 'PHP-8.1'
alexdowad Dec 20, 2021
4ffed6d
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 20, 2021
7d37acc
Merge branch 'PHP-8.1'
dstogov Dec 20, 2021
01dc872
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 20, 2021
9b968ff
Merge branch 'PHP-8.1'
dstogov Dec 20, 2021
aa35499
Use new param API in ext/pcntl (#7751)
arnaud-lb Dec 21, 2021
1a4d2dd
zend alloc USE_ZEND_ALLOC_HUGE_PAGES option support on solaris based …
devnexen Dec 21, 2021
3ee2422
Merge branch 'PHP-8.0' into PHP-8.1
krakjoe Dec 21, 2021
898da7b
Merge branch 'PHP-8.1'
krakjoe Dec 21, 2021
ebace1d
pcntl add ECAPMODE from FreeBSD (#7716)
devnexen Dec 21, 2021
00113b9
Merge branch 'PHP-8.0' into PHP-8.1
krakjoe Dec 21, 2021
fae4344
Merge branch 'PHP-8.1'
krakjoe Dec 21, 2021
938a81c
Merge branch 'PHP-8.0' into PHP-8.1
krakjoe Dec 21, 2021
0b5d371
Merge branch 'PHP-8.1'
krakjoe Dec 21, 2021
3c73225
New internal interface for fast text conversion in mbstring
alexdowad Jul 21, 2021
5d6bc25
Reset Bucket->key of deleted HastTable elemets to NULL.
dstogov Dec 22, 2021
713dcb2
Fix the value param of SimpleXMLElement::addAttribute()
kocsismate Dec 22, 2021
97cdf62
Merge branch 'PHP-8.1'
kocsismate Dec 22, 2021
ccd7d41
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 23, 2021
5ddf191
Merge branch 'PHP-8.1'
cmb69 Dec 23, 2021
d37c496
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 23, 2021
9534673
[ci skip] Merge branch 'PHP-8.1'
cmb69 Dec 23, 2021
e72b2f3
Azure CI: remove duplicates and add required libs
7snovic Dec 23, 2021
eebe910
Don't test hidden files that happen to end in .phpt
cscott Dec 23, 2021
9d2dc1e
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 23, 2021
3c3257b
Merge branch 'PHP-8.1'
cmb69 Dec 23, 2021
aab5296
micro-optimization
dstogov Dec 23, 2021
0ed39ed
Fix GH-7809: Cloning a faked SplFileInfo object may segfault
cmb69 Dec 22, 2021
8683d17
Merge branch 'PHP-8.1'
cmb69 Dec 23, 2021
b2939b6
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 24, 2021
8b23538
Merge branch 'PHP-8.1'
dstogov Dec 24, 2021
eee3b1d
Bucket->key must be removed before destructor call, because destructo…
dstogov Dec 24, 2021
46d1e50
Remove redundant code in zend_optimizer_replace_by_const()
nikic Dec 25, 2021
4ad9dbb
Don't replace SEND opcodes with different by-ref behavior
nikic Dec 25, 2021
36dafad
Remove unnecessary try_replace_op1() special cases
nikic Dec 25, 2021
98dfde2
Remove unnecessary INSTANCEOF special case in sccp
nikic Dec 25, 2021
92e7cf5
Move FETCH_CLASS+INSTANCEOF special case out of update_op1_const()
nikic Dec 25, 2021
7eae7e5
Remove FETCH_CLASS+INSTANCEOF special case
nikic Dec 25, 2021
0884048
Don't exclude arrays from constant collection
nikic Dec 25, 2021
52676f2
Remove unnecessary wrapper function
nikic Dec 25, 2021
2828757
hash: Upgrade xxHash to 0.8.1
weltling Dec 25, 2021
f6dce4a
Extract common replacement login in pass1
nikic Dec 25, 2021
046096f
Remove outdated FETCH_CLASS handling in FETCH_CLASS_CONSTANT optimiza…
nikic Dec 25, 2021
2cf9303
Sink op_array scope case into get_class_entry()
nikic Dec 25, 2021
206d80e
Reuse get_class_entry_from_op1() helper
nikic Dec 25, 2021
924e875
Minor code cleanup in pass1
nikic Dec 26, 2021
c4334fc
Remove special chr/count handling in sccp function evaluation
nikic Dec 26, 2021
9e4437f
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 26, 2021
c5c66bd
Merge branch 'PHP-8.1'
cmb69 Dec 26, 2021
a6ddd1a
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 26, 2021
77b5424
Merge branch 'PHP-8.1'
cmb69 Dec 26, 2021
1050eda
Extract special function evaluation from pass1
nikic Dec 26, 2021
e45653c
Make sure SCCP can evaluate all functions pass1 can
nikic Dec 26, 2021
0cd1741
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 26, 2021
057737c
Merge branch 'PHP-8.1'
cmb69 Dec 26, 2021
eac50a3
Implement fast text conversion interface for Big5
alexdowad Dec 5, 2021
da58d42
Implement fast text conversion interface for CP950
alexdowad Dec 6, 2021
40809cb
Implement fast text conversion interface for HZ
alexdowad Dec 6, 2021
c0936d4
Implement fast text conversion interface for UHC
alexdowad Dec 7, 2021
43bb97c
Implement fast text conversion interface for EUC-KR
alexdowad Dec 7, 2021
2055537
Implement fast text conversion interface for CP932
alexdowad Dec 9, 2021
661a101
Implement fast text conversion interface for CP936
alexdowad Dec 9, 2021
9bd08a9
Implement fast text conversion interface for EUC-TW
alexdowad Dec 10, 2021
6ef1b35
Implement fast text conversion interface for EUC-CN
alexdowad Dec 10, 2021
e5af94b
Implement fast text conversion interface for CP51932
alexdowad Dec 10, 2021
3e8088d
Implement fast text conversion interface for EUC-JP-MS
alexdowad Dec 11, 2021
cb4626c
Implement fast text conversion interface for GB18030
alexdowad Dec 12, 2021
01afd9f
Implement fast text conversion interface for JIS
alexdowad Dec 13, 2021
53ffba9
Implement fast text conversion interface for CP5022{0,1,2}
alexdowad Dec 20, 2021
710dc03
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 26, 2021
5a3b0da
Merge branch 'PHP-8.1'
cmb69 Dec 26, 2021
187e011
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 26, 2021
124ac49
[ci skip] Merge branch 'PHP-8.1'
cmb69 Dec 26, 2021
2759e6b
Fixed assertion when check "instanceof" on unlinked class
dstogov Dec 27, 2021
a066b80
Skip abstract methods
dstogov Dec 27, 2021
f82593d
Fix GH-7815: php_uname doesn't recognise latest Windows versions
Quppa Dec 23, 2021
383bdbc
Merge branch 'PHP-8.1'
cmb69 Dec 27, 2021
71b55d7
[ci skip] supportedOs Id for Windows 10 and 11 are the same
cmb69 Dec 27, 2021
d4c07df
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 27, 2021
a72a011
Merge branch 'PHP-8.1'
cmb69 Dec 27, 2021
d58c48d
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 27, 2021
1d44829
Merge branch 'PHP-8.1'
cmb69 Dec 27, 2021
eb43f8a
Eliminate more VERIFY_RETURN_TYPE instructions
dstogov Dec 27, 2021
b36f25a
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 27, 2021
693c880
[ci skip] Merge branch 'PHP-8.1'
cmb69 Dec 27, 2021
8862e23
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 28, 2021
3319f17
Merge branch 'PHP-8.1'
dstogov Dec 28, 2021
5d4bef0
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 28, 2021
8147fec
Merge branch 'PHP-8.1'
cmb69 Dec 28, 2021
c69b942
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Dec 28, 2021
9362d6f
Merge branch 'PHP-8.1'
dstogov Dec 28, 2021
85af420
[skip ci] Update documentation of supported php versions (#7822)
TysonAndre Dec 28, 2021
24be11f
Remove bogus type of $object param in SplObjectStorage::offsetSet()
kocsismate Dec 28, 2021
a0ba104
Merge branch 'PHP-8.1'
kocsismate Dec 28, 2021
7d2f2a1
Remove an incorrect JMPZNZ optimization
nikic Dec 30, 2021
0698bf7
Add helper for convertion to CHECK_VAR/FREE/NOP
nikic Dec 30, 2021
f2b5015
Add some more test cases for BCMath
peter279k Dec 30, 2021
50c7512
mysqli_result::__construct should throw exceptions (#7855)
kamil-tekiela Dec 30, 2021
8869bbe
Fix bug GH-7746 (mysqli_sql_exception->sqlstate is inaccessible)
kamil-tekiela Dec 30, 2021
a0be3f8
Merge branch 'PHP-8.1'
kamil-tekiela Dec 30, 2021
b63e4cf
Handle holes in zend_get_opcode_id()
nikic Dec 30, 2021
55a4bae
Merge branch 'PHP-8.1'
nikic Dec 30, 2021
ae9e986
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 30, 2021
15233a4
Merge branch 'PHP-8.1'
cmb69 Dec 30, 2021
b51f519
Merge branch 'PHP-8.0' into PHP-8.1
kamil-tekiela Dec 30, 2021
5cef4e1
Merge branch 'PHP-8.1'
kamil-tekiela Dec 30, 2021
694c44a
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Dec 30, 2021
f25a380
[ci skip] Merge branch 'PHP-8.1'
cmb69 Dec 30, 2021
96a5026
Redefine PDOException::$code with correct type
kocsismate Dec 28, 2021
e127f3f
Merge branch 'PHP-8.1'
kocsismate Jan 1, 2022
05ed3b7
Remove duplicated SKIP checks from mysqli tests (#7858)
kamil-tekiela Jan 2, 2022
f70ca0a
Mark mysqli_driver properties readonly
kocsismate Dec 28, 2021
addec73
Merge branch 'PHP-8.1'
kocsismate Jan 4, 2022
70b02d7
riscv64 support for fibers
jcourreges Jan 3, 2022
f2fa875
Merge branch 'PHP-8.1'
cmb69 Jan 4, 2022
15466ed
Merge branch 'PHP-8.0' into PHP-8.1
iluuu1994 Jan 4, 2022
d7027a6
Merge branch 'PHP-8.1'
iluuu1994 Jan 4, 2022
623b212
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 4, 2022
e1a2383
Merge branch 'PHP-8.1'
cmb69 Jan 4, 2022
4ae7562
Preparing for 8.1.3-dev
patrickallaert Jan 4, 2022
46bec6d
Fix the OpenMetrics response format returned by the FPM status page
ste93cry Dec 28, 2021
c70f3e0
Merge branch 'PHP-8.1'
bukka Jan 4, 2022
0462719
Fix class synopsis generation
kocsismate Nov 22, 2021
b9e8d93
Merge branch 'PHP-8.1'
kocsismate Jan 6, 2022
62e4ac9
Add support for custom property links
kocsismate Jan 6, 2022
266667c
Merge branch 'PHP-8.1'
kocsismate Jan 7, 2022
66eb96e
Silence potential connection failure in SKIPIF section
cmb69 Jan 7, 2022
0a9f552
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 7, 2022
c6bb747
Merge branch 'PHP-8.1'
cmb69 Jan 7, 2022
51eec50
Run mb_send_mail tests on Windows, too
cmb69 Jan 7, 2022
9e80947
VS 17 == MSVC v143 == Visual Studio 2022 == cl 19.3x
cmb69 Jan 8, 2022
2b07513
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 8, 2022
d528d29
Merge branch 'PHP-8.1'
cmb69 Jan 8, 2022
4833362
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 10, 2022
a8c6a5c
Merge branch 'PHP-8.1'
cmb69 Jan 10, 2022
be22018
Fix pcntl_rfork build for DragonFlyBSD
devnexen Jan 9, 2022
d6b4039
Merge branch 'PHP-8.1'
cmb69 Jan 10, 2022
56430ef
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 10, 2022
bb5047a
Merge branch 'PHP-8.1'
dstogov Jan 10, 2022
8e5f54e
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 10, 2022
8a5c681
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 10, 2022
bd44c56
Merge branch 'PHP-8.1'
dstogov Jan 10, 2022
491793a
Fixed test
dstogov Jan 10, 2022
c958ab1
JIT: Fix array separation after capturing by user error handler
dstogov Jan 10, 2022
1b7d50b
Merge branch 'PHP-8.1'
dstogov Jan 10, 2022
906cb52
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 10, 2022
4d907a6
Merge branch 'PHP-8.1'
dstogov Jan 10, 2022
796511f
Fix php-cgi name in usage info
cmb69 Jan 9, 2022
9824735
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 10, 2022
387c78a
Merge branch 'PHP-8.1'
dstogov Jan 10, 2022
4543cd3
Remove JMPZNZ opcode
nikic Dec 30, 2021
1632ebb
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 10, 2022
ede1568
Merge branch 'PHP-8.1'
cmb69 Jan 10, 2022
f9bf5f4
Merge branch 'PHP-8.0' into PHP-8.1
krakjoe Jan 11, 2022
3c4c200
Merge branch 'PHP-8.1'
krakjoe Jan 11, 2022
e1782c0
Fix ASAN undefined behavior (unsigned char << 24)
dstogov Jan 11, 2022
3b6d385
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 11, 2022
72cdb0a
Merge branch 'PHP-8.1'
dstogov Jan 11, 2022
d136799
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 11, 2022
a8ccbaf
Merge branch 'PHP-8.1'
dstogov Jan 11, 2022
f6d7f78
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 12, 2022
9a16533
Merge branch 'PHP-8.1'
dstogov Jan 12, 2022
78974a4
JIT: Fix incorrect flag check
dstogov Jan 11, 2022
7e6558e
Fix ext/zend_test/tests/observer_bug81430_2.phpt failure
dstogov Jan 12, 2022
524ce90
fix GH-7899 Regression in unpack for negative int value
remicollet Jan 7, 2022
d5b6c0d
Merge branch 'PHP-8.1'
remicollet Jan 13, 2022
e31c54d
fix GH-7899 Regression in unpack for negative int value
remicollet Jan 7, 2022
9406198
Merge branch 'PHP-8.1'
remicollet Jan 13, 2022
cd4e886
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 14, 2022
313371a
Merge branch 'PHP-8.1'
dstogov Jan 14, 2022
797e091
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 14, 2022
024755c
Merge branch 'PHP-8.1'
dstogov Jan 14, 2022
655e578
JIT: Fix exception handling
dstogov Jan 14, 2022
2b1f8ab
Merge branch 'PHP-8.1'
dstogov Jan 14, 2022
944b6b6
Merge concatenated literal strings while compiling. (#7948)
TysonAndre Jan 16, 2022
79bf39e
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 17, 2022
ca6613a
Merge branch 'PHP-8.1'
cmb69 Jan 17, 2022
8d2ed19
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 17, 2022
3e32717
Merge branch 'PHP-8.1'
cmb69 Jan 17, 2022
2c4b9e9
[JIT] Print out more meaningful warning message
stkeke Jan 18, 2022
69f6b09
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 18, 2022
58cbee1
Merge branch 'PHP-8.1'
cmb69 Jan 18, 2022
cdfc4d3
Fix GH-7883 don't close not open file handle
remicollet Jan 17, 2022
ac1c2dc
Merge branch 'PHP-8.1'
remicollet Jan 18, 2022
20d8561
fuzzer support for FreeBSD, getting opcache location
devnexen Jan 18, 2022
6af65ea
Fix news entry for 8.1.2
ramsey Jan 19, 2022
aff3709
[ci skip] Extend my maintainership of com_dotnet and gd
cmb69 Jan 19, 2022
1f0661d
Merge branch 'PHP-8.0' into PHP-8.1
kamil-tekiela Jan 19, 2022
262d4c2
Merge branch 'PHP-8.1'
kamil-tekiela Jan 19, 2022
1605e6f
Merge branch 'PHP-8.0' into PHP-8.1
kamil-tekiela Jan 20, 2022
2a0bc0b
Merge branch 'PHP-8.1'
kamil-tekiela Jan 20, 2022
de4afc0
[ci skip] Fix NEWS
cmb69 Jan 21, 2022
c25b23f
[ci skip] Merge branch 'PHP-8.1'
cmb69 Jan 21, 2022
d2ec5be
Make gh7875.phpt more resilient
cmb69 Jan 21, 2022
298f0fb
Merge branch 'PHP-8.1'
cmb69 Jan 21, 2022
943d6f6
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Jan 21, 2022
0832d4a
Merge branch 'PHP-8.1'
cmb69 Jan 21, 2022
b27d2ff
Update php-parser to 4.13.2 in build/gen_stub.php (#7989)
TysonAndre Jan 22, 2022
e700864
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 28, 2022
e7c2e11
Merge branch 'PHP-8.1'
dstogov Jan 28, 2022
34c2324
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 28, 2022
2af3323
Merge branch 'PHP-8.1'
dstogov Jan 28, 2022
f1ae135
Fix memory leak
dstogov Jan 28, 2022
f4a3868
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 28, 2022
a23f3dd
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Jan 28, 2022
74f7f2c
Merge branch 'PHP-8.1'
dstogov Jan 28, 2022
22688c7
[ci skip] [Zend] Update README.md with new Zend VM executors
Jan 29, 2022
70f712c
[ci skip] Close stale PRs with GitHub actions
iluuu1994 Jan 25, 2022
2f52956
Optimize stripos/stristr
iluuu1994 Dec 29, 2021
8e2406c
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 1, 2022
233b659
Merge branch 'PHP-8.1'
dstogov Feb 1, 2022
7184783
Prevent array modification if it's captured by user error handler during
dstogov Feb 1, 2022
107997e
Merge branch 'PHP-8.1'
dstogov Feb 1, 2022
09bf346
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 1, 2022
8ed14f6
Merge branch 'PHP-8.1'
dstogov Feb 1, 2022
0d189f0
Merge branch 'PHP-8.0' into PHP-8.1
sgolemon Feb 2, 2022
b48fe14
Merge branch 'PHP-8.1'
sgolemon Feb 2, 2022
8db7fd8
Bump for 8.1.4-dev
patrickallaert Feb 3, 2022
8c7521d
[Close stale PRs] Skip RFCs and "Waiting on Review"
iluuu1994 Feb 3, 2022
341a4de
Merge branch 'PHP-8.1'
cmb69 Feb 3, 2022
8009b21
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 3, 2022
d67698a
Merge branch 'PHP-8.1'
cmb69 Feb 3, 2022
706398f
[ci skip] [Close stale PRs] Enable GitHub action
iluuu1994 Feb 4, 2022
0199b22
ext/opcache: check mkstemp() return value right after the call (#8031)
MaxKellermann Feb 5, 2022
7b90ebe
Fix `-Werror=sign-compare` warning in `zend_memnistr` (#8042)
TysonAndre Feb 5, 2022
ca0afc3
Improve speed of dominators and loop identification algorithms
dstogov Feb 7, 2022
188a6cc
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 7, 2022
ca62a99
Merge branch 'PHP-8.1'
cmb69 Feb 7, 2022
49466af
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 7, 2022
c53455f
Merge branch 'PHP-8.1'
cmb69 Feb 7, 2022
b5b8652
Force macOS to use statfs.
risner Feb 7, 2022
a0acf43
Style changes to macOS statvfs patch.
risner Feb 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 28 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
env:
CIRRUS_CLONE_DEPTH: 1
ARCH: amd64

freebsd_instance:
image_family: freebsd-13-0

task:
name: FREEBSD_DEBUG_NTS
install_script:
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
#- pkg upgrade -y
- kldload accf_http
- pkg install -y autoconf bison gmake re2c icu libiconv png freetype2 enchant2 bzip2 krb5 t1lib gmp tidyp libsodium libzip libxml2 libxslt openssl oniguruma pkgconf webp libavif
script:
- ./buildconf -f
- ./configure --prefix=/usr/local --enable-debug --enable-option-checking=fatal --enable-fpm --with-pdo-sqlite --without-pear --with-bz2 --with-avif --with-jpeg --with-webp --with-freetype --enable-gd --enable-exif --with-zip --with-zlib --enable-soap --enable-xmlreader --with-xsl --with-libxml --enable-shmop --enable-pcntl --enable-mbstring --with-curl --enable-sockets --with-openssl --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp --with-kerberos --with-ffi --enable-zend-test --enable-intl --with-mhash --with-sodium --enable-werror --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
- gmake -j2
- mkdir /etc/php.d
- gmake install
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
# Specify opcache.preload_user as we're running as root.
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
tests_script:
- export SKIP_IO_CAPTURE_TESTS=1
- export CI_NO_IPV6=1
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Bug report
description: Create a bug report
labels: ["Bug", "Status: Needs Triage"]
body:
- type: textarea
attributes:
label: Description
description: "Please provide a minimal way to reproduce the problem and describe what the expected vs actual behavior is. Provide a [3v4l.org](https://3v4l.org/) link if possible."
value: |
The following code:

```php
<?php
```

Resulted in this output:
```
```

But I expected this output instead:
```
```
validations:
required: true
- type: input
attributes:
label: PHP Version
description: "The used PHP version. Make sure it is [supported](https://www.php.net/supported-versions.php)."
placeholder: "PHP 8.0.12"
validations:
required: true
- type: input
attributes:
label: Operating System
description: "The used operating system, if relevant."
placeholder: "Ubuntu 20.04"
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Documentation issue
url: https://github.com/php/doc-en/issues
about: Please report documentation issues on the doc-en repository.
- name: Security issue
url: https://bugs.php.net/report.php?security_bug
about: Please report security issues in this private bug tracker.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Feature request
description: Create a feature request
labels: ["Feature", "Status: Needs Triage"]
body:
- type: textarea
attributes:
label: Description
description: "Please describe the requested feature and why it should be included in PHP."
validations:
required: true
17 changes: 17 additions & 0 deletions .github/workflows/close-needs-feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Close old issues that need feedback

on:
schedule:
- cron: "0 0 * * *"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close old issues that need feedback
uses: dwieeb/needs-reply@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-label: "Status: Needs Feedback"
days-before-close: 14
close-message: "No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you."
19 changes: 19 additions & 0 deletions .github/workflows/close-stale-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Close stale PRs

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-close: 7
days-before-stale: 60
exempt-pr-labels: RFC,Waiting on Review
# Hack to skip issues, unfortunately there's no option to disable issues
only-issue-labels: inexistent-label
only-pr-labels: Waiting on Author
stale-pr-message: There has not been any recent activity in this PR. It will automatically be closed in 7 days if no further action is taken.
18 changes: 18 additions & 0 deletions .github/workflows/remove-needs-feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Remove needs feedback label

on:
issue_comment:
types:
- created

jobs:
build:
if: "contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login"
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Status: Needs Feedback"
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Status: Needs Triage"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
# Standard object files generated during build process
*.o

# Dependency files generated during build process
*.dep

# Cache directories created by Autoconf tools
autom4te.cache/

Expand Down
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ env:

jobs:
include:
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 ARM64=1
arch: arm64
if: type = cron
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 S390X=1
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 S390X=1
arch: s390x
if: type = cron

before_script:
- ccache --version
Expand All @@ -89,9 +87,9 @@ before_script:

# Run PHPs run-tests.php
script:
# ARM64 CI reports nproc=32, which is excessive.
- if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
- ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=16M -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120 -j$JOBS
- ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing
- if [[ "$ARM64" == 1 ]]; then ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=function; fi
- if [[ "$ARM64" == 1 ]]; then ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing --repeat 2; fi
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'

after_success:
Expand Down
53 changes: 17 additions & 36 deletions CODING_STANDARDS.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
# PHP coding standards

This file lists several standards that any programmer adding or changing code in
PHP should follow. Since this file was added at a very late stage of the
development of PHP v3.0, the code base does not fully follow it, but new
features are going in that general direction. Many sections have been recoded to
use these rules.
This file lists standards that any programmer adding or changing code in
PHP should follow. The code base does not yet fully follow it, but new
features are going in that general direction. Many sections have been
rewritten to comply with these rules.

## Code implementation

1. Document your code in source files and the manual. (tm)

2. Functions that are given pointers to resources should not free them.

For instance, `function int mail(char *to, char *from)` should NOT free to
and/or from.
For instance, `function int mail(char *to, char *from)` should NOT free `to`
and/or `from`.

Exceptions:

* The function's designated behavior is freeing that resource. E.g.
`efree()`

* The function is given a boolean argument, that controls whether or not the
function may free its arguments (if true - the function must free its
arguments, if false - it must not)
function may free its arguments (if true, the function must free its
arguments; if false, it must not)

* Low-level parser routines, that are tightly integrated with the token
cache and the bison code for minimum memory copying overhead.

3. Functions that are tightly integrated with other functions within the same
module, and rely on each other non-trivial behavior, should be documented as
module, and rely on each other's non-trivial behavior, should be documented as
such and declared `static`. They should be avoided if possible.

4. Use definitions and macros whenever possible, so that constants have
meaningful names and can be easily manipulated. The only exceptions to this
rule are 0 and 1, when used as `false` and `true` (respectively). Any other
use of a numeric constant to specify different behavior or actions should be
done through a `#define`.
meaningful names and can be easily manipulated. Any use of a numeric
constant to specify different behavior or actions should be done through
a `#define`.

5. When writing functions that deal with strings, be sure to remember that PHP
holds the length property of each string, and that it shouldn't be
Expand Down Expand Up @@ -260,35 +258,18 @@ use these rules.
```

4. When indenting, use the tab character. A tab is expected to represent four
spaces. It is important to maintain consistency in indenture so that
spaces. It is important to maintain consistency in indentation so that
definitions, comments, and control structures line up correctly.

5. Preprocessor statements (`#if` and such) MUST start at column one. To indent
preprocessor directives you should put the `#` at the beginning of a line,
followed by any number of whitespace.
followed by any number of spaces.

## Testing

1. Extensions should be well tested using `*.phpt` tests. Read about that at
1. Extensions should be well tested using `*.phpt` tests. Read more at
[qa.php.net](https://qa.php.net/write-test.php) documentation.

## Folding hooks

Use `{{{` symbols for the folding mode in Emacs and vim (`set fdm=marker`).
Folding is very useful when dealing with large files because you can scroll
through the file quickly and just unfold the function you wish to work on.
The `}}}` at the end of each function marks the end of the fold, and should
be on a separate line.

```c
/* {{{ Returns the absolute value of the number */
PHP_FUNCTION(abs)
{
...
}
/* }}} */
```

## New and experimental functions

To reduce the problems normally associated with the first public implementation
Expand All @@ -302,8 +283,8 @@ The file labelled `EXPERIMENTAL` should include the following information:
* Any authoring information (known bugs, future directions of the module).
* Ongoing status notes which may not be appropriate for Git comments.

In general new features should go to PECL or experimental branches until there
are specific reasons for directly adding it to the core distribution.
In general, new features should go to PECL or experimental branches until there
are specific reasons for directly adding them to the core distribution.

## Aliases & legacy documentation

Expand Down
Loading