Skip to content
forked from php/php-src

sync #15

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

Merged
merged 453 commits into from
Mar 24, 2022
Merged

sync #15

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
453 commits
Select commit Hold shift + click to select a range
70f712c
[ci skip] Close stale PRs with GitHub actions
iluuu1994 Jan 25, 2022
2f52956
Optimize stripos/stristr
iluuu1994 Dec 29, 2021
a60a9b4
Fix memory leak
dstogov Feb 1, 2022
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
478448d
JIT: Fix register alloction (missed store)
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
8a46311
Bump for 8.0.17-dev
sgolemon Feb 2, 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
9bd468d
Fix GH-7953: ob_clean() only does not set Content-Encoding
cmb69 Jan 20, 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
bea542a
Haiku fix ZTS build, disabling tls model
devnexen Feb 6, 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
86c196b
Fix GH-7980: Unexpected result for iconv_mime_decode
cmb69 Feb 3, 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
2d579a1
[ci skip] Update README.md on ZE description
Feb 8, 2022
1d48da6
Fixed libpng warning when loading interlaced images
brettwhiteman Feb 8, 2022
4a630e6
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 8, 2022
0052af2
Merge branch 'PHP-8.1'
cmb69 Feb 8, 2022
c035298
Free cached chunks when the requested memory limit is above real usage
dstogov Feb 8, 2022
c7558e2
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 8, 2022
68a51e3
Merge branch 'PHP-8.1'
dstogov Feb 8, 2022
3b46374
Fix GH-8059 use $PHP_EXECUTABLE when $PHP not set
remicollet Feb 8, 2022
c03e111
[ci skip] news
remicollet Feb 8, 2022
05023a2
Merge branch 'PHP-8.1'
remicollet Feb 8, 2022
29fe06f
Fix bug #76109: Implement fpm_scoreboard_copy
Mar 19, 2018
49087a6
Merge branch 'PHP-8.0' into PHP-8.1
bukka Feb 9, 2022
354c52e
Merge branch 'PHP-8.1'
bukka Feb 9, 2022
82bb169
Tracing JIT: Fixed incorrect deoptimization info
dstogov Feb 11, 2022
5a8f242
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 11, 2022
d0f965d
Tracing JIT: Fixed incorrect deoptimization info
dstogov Feb 11, 2022
55f1db6
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 11, 2022
6fc26a5
Merge branch 'PHP-8.1'
dstogov Feb 11, 2022
0d6b173
JIT: Fix missed type store
dstogov Feb 11, 2022
bf515be
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 11, 2022
ad93fda
Merge branch 'PHP-8.1'
dstogov Feb 11, 2022
7434909
Fix type inference
dstogov Feb 11, 2022
0eb96b6
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 11, 2022
3a069da
Merge branch 'PHP-8.1'
dstogov Feb 11, 2022
912608d
JIT: Fixed register clobbering during overflow handling
dstogov Feb 11, 2022
a506b00
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 11, 2022
02952d3
Merge branch 'PHP-8.1'
dstogov Feb 11, 2022
73fed0f
Fix emory leak
dstogov Feb 11, 2022
a1e0936
Merge branch 'PHP-8.1'
dstogov Feb 11, 2022
52ae641
Fixed GH-8044 (var_export/debug_zval_dump HT_ASSERT_RC1 debug failure…
dstogov Feb 11, 2022
a584d12
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 11, 2022
a04d181
Merge branch 'PHP-8.1'
dstogov Feb 11, 2022
c77bbcd
Fixed GH-8041 (php 8.2.0-dev crashes with assertion for cloning/get_o…
dstogov Feb 11, 2022
dce5e56
Fix #81708: UAF due to php_filter_float() failing for ints
cmb69 Jan 31, 2022
82f1bf1
Fix #81708: UAF due to php_filter_float() failing for ints
cmb69 Jan 31, 2022
61b276c
Merge branch 'PHP-7.4' into PHP-8.0
smalyshev Feb 14, 2022
414d562
Merge branch 'PHP-8.0' into PHP-8.1
smalyshev Feb 14, 2022
8b1b6ae
Merge branch 'PHP-8.1'
smalyshev Feb 14, 2022
93a8d5c
Fix bug GH-8058 - mysqlnd segfault when prepare fails
kamil-tekiela Feb 8, 2022
2bae4e8
Merge branch 'PHP-8.0' into PHP-8.1
kamil-tekiela Feb 14, 2022
b582427
Merge branch 'PHP-8.1'
kamil-tekiela Feb 14, 2022
d13ceb7
Add fix to NEWS
derickr Feb 14, 2022
f810594
Merge branch 'PHP-7.4' into PHP-8.0
derickr Feb 14, 2022
7add0da
Merge branch 'PHP-8.0' into PHP-8.1
derickr Feb 14, 2022
7d6b961
Merge branch 'PHP-8.1'
derickr Feb 14, 2022
0fab520
Fix zend_register_internal_class_ex alias generation (#8091)
TysonAndre Feb 14, 2022
325bcf9
Prepare for 7.4.29
derickr Feb 15, 2022
6fbf5a6
Merge branch 'PHP-7.4' into PHP-8.0
derickr Feb 15, 2022
0e32d3f
Merge branch 'PHP-8.0' into PHP-8.1
derickr Feb 15, 2022
0e65e43
Merge branch 'PHP-8.1'
derickr Feb 15, 2022
e98a7a6
Fix bugtracker URL
cmb69 Feb 15, 2022
720d6fa
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 15, 2022
1c381a7
Merge branch 'PHP-8.1'
cmb69 Feb 15, 2022
bfe9531
Initialize int_codepoint in parse_code_point_param()
nikic Feb 16, 2022
40e0bdb
Merge branch 'PHP-8.0' into PHP-8.1
nikic Feb 16, 2022
06de112
Merge branch 'PHP-8.1'
nikic Feb 16, 2022
f06ac9a
Fix GH-7939: Cannot unserialize IntlTimeZone objects
cmb69 Jan 20, 2022
8f5480e
Release lock and protect SHM before replaying warnings
dstogov Feb 17, 2022
90ca8f9
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 17, 2022
529f9f8
Merge branch 'PHP-8.1'
dstogov Feb 17, 2022
7e8257f
Disable ASSIGN optimization for values inferred for fatal errors.
dstogov Feb 18, 2022
ace00fa
Merge branch 'PHP-8.1'
dstogov Feb 18, 2022
84a638a
Fix memory leak
dstogov Feb 18, 2022
22328f6
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 18, 2022
90e4d54
Merge branch 'PHP-8.1'
dstogov Feb 18, 2022
3198b87
JIT: Fix register allocation
dstogov Feb 18, 2022
afbb9b9
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 18, 2022
55b4dde
Merge branch 'PHP-8.1'
dstogov Feb 18, 2022
2753b45
[ci skip] Don't run GitHub actions on forks
iluuu1994 Feb 18, 2022
19063a8
Fix null static_variable_ptr for uncalled fake closures
iluuu1994 Feb 17, 2022
7d8e3da
Merge branch 'PHP-8.1'
iluuu1994 Feb 19, 2022
fb70460
Fix GH-7958: Nested CallbackFilterIterator is leaking memory
cmb69 Feb 18, 2022
18f1587
Merge branch 'PHP-8.1'
cmb69 Feb 21, 2022
dfd2a80
Fix #80909: crash with persistent connections in PDO_ODBC
NattyNarwhal Feb 17, 2022
ef80dcb
Fix GH-8074: Wrong type inference of range() result
cmb69 Feb 21, 2022
7ea3b19
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 22, 2022
3be34c3
Merge branch 'PHP-8.1'
cmb69 Feb 22, 2022
8a8533d
mb_check_encoding($str, '7bit') rejects strings with bytes over 0x7F
alexdowad Feb 22, 2022
ff76694
Merge branch 'PHP-8.1'
alexdowad Feb 22, 2022
41461cf
Migrate CI to GitHub actions
iluuu1994 Feb 9, 2022
100ce1f
Merge branch 'PHP-8.0' into PHP-8.1
iluuu1994 Feb 23, 2022
3c9c809
Merge branch 'PHP-8.1'
iluuu1994 Feb 23, 2022
bbc111e
Add NEWS entry for recent MBString bugfix (re: '7bit' encoding)
alexdowad Feb 23, 2022
4153178
Merge branch 'PHP-8.1'
alexdowad Feb 23, 2022
1e8d35a
GitHub actions test with firebird, dblib and werror
iluuu1994 Feb 23, 2022
ecd37b0
Merge branch 'PHP-8.1'
iluuu1994 Feb 23, 2022
e80ec3f
Mark failing JIT test with XFAIL
iluuu1994 Feb 23, 2022
11cedf4
Merge branch 'PHP-8.1'
iluuu1994 Feb 23, 2022
cd1c6f0
Fixes infinite recursion introduced by patch to SplFixedArray (#8105)
TysonAndre Feb 24, 2022
5d907df
Merge branch 'PHP-8.0' into PHP-8.1
TysonAndre Feb 24, 2022
b50315e
Merge branch 'PHP-8.1'
TysonAndre Feb 24, 2022
33cd61c
Fix GH-8140: Wrong first class callable by name optimization
cmb69 Feb 23, 2022
bf32299
Merge branch 'PHP-8.1'
cmb69 Feb 24, 2022
67dd48f
fix [-Wstrict-prototypes] buid warnings
patrickallaert Feb 24, 2022
8c60e21
Avoid possible [-Wstrict-prototypes] build warnings
patrickallaert Feb 24, 2022
8b8cf8f
JIT: Fix register clobbering
dstogov Feb 28, 2022
5ca5f06
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
78c7289
Fixed incorrect DCE for FREE
dstogov Feb 28, 2022
56d7672
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 28, 2022
36ce177
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
0d266a2
Fix GH-8080: ReflectionClass::getConstants() depends on def. order
cmb69 Feb 16, 2022
27d2fdd
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Feb 28, 2022
c872056
Merge branch 'PHP-8.1'
cmb69 Feb 28, 2022
ac8a53c
JIT: Fix register allocator
dstogov Feb 28, 2022
2ae1e7a
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 28, 2022
2b3620d
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
0a5162b
Allow setting full type info
dstogov Feb 28, 2022
de7e23a
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
70f7e7d
JIT: Fix memory leak
dstogov Feb 28, 2022
f67986a
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 28, 2022
8e00da3
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
5ca2dd3
Fixed assertion after clobbering object by user error handler, because
dstogov Feb 28, 2022
aced867
Fix typr inference
dstogov Feb 28, 2022
486d654
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
bb0b4eb
Fix infiniry recursion during serialize() of "tricky" object
dstogov Feb 28, 2022
014c852
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
01702a8
Fix use after free
dstogov Feb 28, 2022
ba6bb85
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Feb 28, 2022
83d96d6
Merge branch 'PHP-8.1'
dstogov Feb 28, 2022
5507201
Prepare for PHP 8.0.18
carusogabriel Mar 1, 2022
05f2fb3
Fix NEWS format
carusogabriel Mar 1, 2022
e6cf583
Fix GH-8082: Prevent leaking memory on observed transient run_time_ca…
bwoebi Feb 12, 2022
85b669e
Merge branch 'PHP-8.0' into PHP-8.1
bwoebi Mar 1, 2022
0e88f74
Merge branch 'PHP-8.1'
bwoebi Mar 1, 2022
723058c
Bump for 8.1.5-dev
patrickallaert Mar 2, 2022
f235f13
Merge branch 'PHP-8.1'
patrickallaert Mar 2, 2022
925a309
Allowing catching arg type deprecations in intl classes
iluuu1994 Feb 18, 2022
51f750e
Merge branch 'PHP-8.1'
iluuu1994 Mar 3, 2022
6744009
Added: [zend_]memory_reset_peak_usage() (#8151)
patrickallaert Mar 4, 2022
57ef16b
Fix GH-8048: disk_*_space wrong for some filesystems on macOS
risner Feb 7, 2022
81048b9
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 4, 2022
2384c23
Merge branch 'PHP-8.1'
cmb69 Mar 4, 2022
8b15858
Fix GH-8142: Compilation error on cygwin
devnexen Feb 23, 2022
4b90eef
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 4, 2022
ea62b80
Merge branch 'PHP-8.1'
cmb69 Mar 4, 2022
cbbf350
Fix GH-8176: Fix leaking enum values in property initializers
bwoebi Mar 7, 2022
c414c5f
Merge branch 'PHP-8.1'
bwoebi Mar 7, 2022
f095d2c
Fix freeing of internal attribute arguments
bwoebi Mar 7, 2022
0d7e10c
Fix memory leak of function attribute hash table (#8070)
TimWolla Mar 7, 2022
a44d99f
Merge branch 'PHP-8.0' into PHP-8.1
bwoebi Mar 7, 2022
070012d
Add tests for function parameter attributes to ext/zend_test
TimWolla Feb 9, 2022
185a146
Merge branch 'PHP-8.1'
bwoebi Mar 7, 2022
15949b6
Fix ZTS build after cherry-pick
bwoebi Mar 7, 2022
67b372e
Merge branch 'PHP-8.0' into PHP-8.1
bwoebi Mar 7, 2022
e439736
Merge branch 'PHP-8.1'
bwoebi Mar 7, 2022
e6bdf98
Put packed back to attribute iterating after merge
bwoebi Mar 7, 2022
6a2c501
Adjust PHP_SETUP_LIBXML description to mention what it doesnt use act…
vityank Mar 8, 2022
1d9a1f9
Fix GH-8121: SplFileObject - seek and key with csv file inconsistent
cmb69 Feb 28, 2022
3a71fcf
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 8, 2022
634b214
Merge branch 'PHP-8.1'
cmb69 Mar 8, 2022
e3ef7bb
Adjust filename/lineno for constant expressions
iluuu1994 Feb 5, 2022
7eb972c
Fix Solaris builds of ext/sockets
devnexen Dec 31, 2021
f16d35c
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 10, 2022
ddb04d4
Merge branch 'PHP-8.1'
cmb69 Mar 10, 2022
c6a53f9
Fix non-reentirant startiong or error recording from error handler
dstogov Mar 11, 2022
bfedb4e
Merge branch 'PHP-8.1'
dstogov Mar 11, 2022
151d2ac
Fixed memory leak
dstogov Mar 11, 2022
1f5562a
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 11, 2022
bf079d0
Merge branch 'PHP-8.1'
dstogov Mar 11, 2022
6c3816c
Tracing JIT: Eliminate useless guards for CONCAT
dstogov Mar 11, 2022
f7608df
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 11, 2022
46c0be5
Merge branch 'PHP-8.1'
dstogov Mar 11, 2022
770a544
Optimizer: Fix inorrect constant substitution in FETCH_LIST_R
dstogov Mar 11, 2022
df14a07
Merge branch 'PHP-8.1'
dstogov Mar 11, 2022
2b2aeb9
Fix GH-8160: ZTS support on Alpine is broken
mvorisek Mar 7, 2022
0b1bca6
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 11, 2022
6b2187b
Merge branch 'PHP-8.1'
cmb69 Mar 11, 2022
0db03c4
Improve sesson write failure message for user error handlers
iluuu1994 Mar 10, 2022
d0a0518
Make DirectoryIterator current() / key() return types tentative
nikic Mar 12, 2022
95ad1d1
Merge branch 'PHP-8.1'
nikic Mar 12, 2022
dd62ec0
Refactor php_next_utf8_char() to use zend_result
Girgias Mar 13, 2022
9792f0d
JIT: Fix type store
dstogov Mar 14, 2022
2862553
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 14, 2022
0d80bc2
Merge branch 'PHP-8.1'
dstogov Mar 14, 2022
efb014d
Reset EG(filename_override) after fatal error
dstogov Mar 14, 2022
e20f955
JIT: Fix register allocation
dstogov Mar 14, 2022
2bed115
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 14, 2022
981ae10
Merge branch 'PHP-8.1'
dstogov Mar 14, 2022
2b7431c
Fix memory leak
dstogov Mar 14, 2022
156d3ae
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 14, 2022
d064226
Merge branch 'PHP-8.1'
dstogov Mar 14, 2022
33eec37
Skip test for preloading
dstogov Mar 14, 2022
6c18287
Merge branch 'PHP-8.1'
dstogov Mar 14, 2022
ef29ddc
Fix GH-8068: mysqli_fetch_object creates inaccessible properties
cmb69 Mar 10, 2022
aef6539
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 14, 2022
dad214c
Merge branch 'PHP-8.1'
cmb69 Mar 14, 2022
b92ae85
Fix typo (--EXTENSION-- → --EXTENSIONS--)
cmb69 Mar 14, 2022
27be6c3
Merge branch 'PHP-8.1'
cmb69 Mar 14, 2022
ec53e17
Use more appropriate types in JSON extension (#8194)
Girgias Mar 16, 2022
d0417eb
Fix GH-8208: mb_encode_mimeheader: $indent functionality broken
cmb69 Mar 17, 2022
5003831
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Mar 17, 2022
20c0eb4
Merge branch 'PHP-8.1'
cmb69 Mar 17, 2022
3d6a7e2
JIT: Fix missing exception handling
dstogov Mar 18, 2022
83ab9cf
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 18, 2022
e85f812
Merge branch 'PHP-8.1'
dstogov Mar 18, 2022
c9385ee
zend_mm_map_fixed using MAP_TRYFIXED on NetBSD.DragonFlyBSD
devnexen Mar 19, 2022
82de4fc
ext/opcache/ZendAccelerator: remove redundant check (#8222)
MaxKellermann Mar 19, 2022
bf2867b
Fix FSF address & update year to 2022
Mar 19, 2022
dd81dd9
build: Extend m4 to support C++20
weltling Mar 19, 2022
3b9af50
Fixed #8228 - updated details for filling bugs to GitHub Issue (#8231)
shriekdj Mar 20, 2022
a83cc9d
Zend/zend_alloc: use bool and make internal variable static (#8230)
MaxKellermann Mar 20, 2022
373f236
ext/opcache: C++ compatibility
MaxKellermann Mar 17, 2022
ca134f7
Remove unused include of stdbool.h
iluuu1994 Mar 20, 2022
6328176
ext/opcache/zend_shared_alloc: add zend_shared_alloc_aligned()
MaxKellermann Mar 18, 2022
b9b134d
ext/opcache/ZendAccelerator: move duplicate code into bzero_aligned()
MaxKellermann Mar 18, 2022
733023b
Improve error message class type
iluuu1994 Mar 10, 2022
7051dc3
JIT: Fix memory leak
dstogov Mar 21, 2022
2198493
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 21, 2022
7947095
Merge branch 'PHP-8.1'
dstogov Mar 21, 2022
e9fc81a
JIT: Fix missing type store
dstogov Mar 21, 2022
21b0da8
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 21, 2022
159a89b
Merge branch 'PHP-8.1'
dstogov Mar 21, 2022
cf83bdd
JIT: Fix register clobbering
dstogov Mar 21, 2022
62a1c06
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Mar 21, 2022
0ba9216
Merge branch 'PHP-8.1'
dstogov Mar 21, 2022
69ea2d8
Convert check + exception to assertion
Girgias Mar 16, 2022
2fa33d1
Use ZEND_THROWS() where applicable in spl_array.c
Girgias Mar 23, 2022
db0db22
Use zend_result/bool in spl_array.c
Girgias Mar 23, 2022
71a110f
Remove strnatcmp_ex() wrappers
Girgias Mar 13, 2022
e948d3c
Use zend_string_to(upper|lower)() API directly
Girgias Mar 23, 2022
814374f
fpm zlog_stream_buf_alloc_ex little simplifications. (#8224)
devnexen Mar 24, 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
  •  
  •  
  •  
68 changes: 68 additions & 0 deletions .github/actions/apt-x64/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: apt
runs:
using: composite
steps:
- shell: bash
run: |
set -x
sudo apt-get update
sudo apt-get install \
bison \
re2c \
locales \
ldap-utils \
openssl \
slapd \
language-pack-de \
libgmp-dev \
libicu-dev \
libtidy-dev \
libenchant-dev \
libaspell-dev \
libpspell-dev \
libsasl2-dev \
libxpm-dev \
libzip-dev \
libsqlite3-dev \
libwebp-dev \
libonig-dev \
libkrb5-dev \
libgssapi-krb5-2 \
libcurl4-openssl-dev \
libxml2-dev \
libxslt1-dev \
libpq-dev \
libreadline-dev \
libldap2-dev \
libsodium-dev \
libargon2-0-dev \
libmm-dev \
libsnmp-dev \
postgresql \
postgresql-contrib \
snmpd \
snmp-mibs-downloader \
freetds-dev \
unixodbc-dev \
llvm \
libc-client-dev \
dovecot-core \
dovecot-pop3d \
dovecot-imapd \
sendmail \
firebird-dev \
liblmdb-dev \
libtokyocabinet-dev \
libdb-dev \
libqdbm-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev
mkdir /opt/oracle
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
unzip instantclient-basiclite-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
unzip instantclient-sdk-linuxx64.zip
mv instantclient_*_* /opt/oracle/instantclient
# Interferes with libldap2 headers.
rm /opt/oracle/instantclient/sdk/include/ldap.h
34 changes: 34 additions & 0 deletions .github/actions/brew/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: brew
runs:
using: composite
steps:
- shell: bash
run: |
set -x
brew install \
pkg-config \
autoconf \
bison \
re2c
brew install \
[email protected] \
krb5 \
bzip2 \
enchant \
libffi \
libpng \
webp \
freetype \
intltool \
icu4c \
libiconv \
zlib \
t1lib \
gd \
libzip \
gmp \
tidyp \
libxml2 \
libxslt \
postgresql
brew link icu4c gettext --force
71 changes: 71 additions & 0 deletions .github/actions/configure-macos/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: ./configure
inputs:
configurationParameters:
default: ''
required: false
runs:
using: composite
steps:
- shell: bash
run: |
set -x
export PATH="/usr/local/opt/bison/bin:$PATH"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/krb5/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxslt/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/zlib/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"
./buildconf --force
./configure \
--enable-option-checking=fatal \
--prefix=/usr/local \
--enable-fpm \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pgsql=/usr/local/opt/libpq \
--with-pdo-pgsql=/usr/local/opt/libpq \
--with-pdo-sqlite \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
--with-freetype \
--enable-exif \
--with-zip \
--with-zlib \
--enable-soap \
--enable-xmlreader \
--with-xsl \
--with-tidy=/usr/local/opt/tidyp \
--with-libxml \
--enable-sysvsem \
--enable-sysvshm \
--enable-shmop \
--enable-pcntl \
--with-readline=/usr/local/opt/readline \
--enable-mbstring \
--with-curl \
--with-gettext=/usr/local/opt/gettext \
--enable-sockets \
--with-bz2=/usr/local/opt/bzip2 \
--with-openssl \
--with-gmp=/usr/local/opt/gmp \
--with-iconv=/usr/local/opt/libiconv \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--with-pspell=/usr/local/opt/aspell \
--with-kerberos \
--enable-sysvmsg \
--with-ffi \
--enable-zend-test \
--enable-intl \
--with-mhash \
--with-sodium \
--enable-dba \
--enable-werror \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
${{ inputs.configurationParameters }}
84 changes: 84 additions & 0 deletions .github/actions/configure-x64/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: ./configure
inputs:
configurationParameters:
default: ''
required: false
runs:
using: composite
steps:
- shell: bash
run: |
set -x
./buildconf --force
./configure \
--enable-option-checking=fatal \
--prefix=/usr \
--enable-phpdbg \
--enable-fpm \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pgsql \
--with-pdo-pgsql \
--with-pdo-sqlite \
--enable-intl \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
--with-freetype \
--with-xpm \
--enable-exif \
--with-zip \
--with-zlib \
--with-zlib-dir=/usr \
--enable-soap \
--enable-xmlreader \
--with-xsl \
--with-tidy \
--enable-sysvsem \
--enable-sysvshm \
--enable-shmop \
--enable-pcntl \
--with-readline \
--enable-mbstring \
--with-curl \
--with-gettext \
--enable-sockets \
--with-bz2 \
--with-openssl \
--with-gmp \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--with-pspell=/usr \
--with-enchant=/usr \
--with-kerberos \
--enable-sysvmsg \
--with-ffi \
--enable-zend-test \
--with-ldap \
--with-ldap-sasl \
--with-password-argon2 \
--with-mhash \
--with-sodium \
--enable-dba \
--with-cdb \
--enable-flatfile \
--enable-inifile \
--with-tcadb \
--with-lmdb \
--with-qdbm \
--with-snmp \
--with-unixODBC \
--with-imap \
--with-kerberos \
--with-imap-ssl \
--with-pdo-odbc=unixODBC,/usr \
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \
--with-oci8=shared,instantclient,/opt/oracle/instantclient \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--with-pdo-firebird \
--with-pdo-dblib \
--enable-werror \
${{ inputs.configurationParameters }}
14 changes: 14 additions & 0 deletions .github/actions/install-linux/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Install
runs:
using: composite
steps:
- shell: bash
run: |
set -x
sudo make install
sudo mkdir /etc/php.d
sudo chmod 777 /etc/php.d
echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini
echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
14 changes: 14 additions & 0 deletions .github/actions/mssql/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Create mssql container
runs:
using: composite
steps:
- shell: bash
run: |
set -x
docker run \
-e "ACCEPT_EULA=Y" \
-e "SA_PASSWORD=<YourStrong@Passw0rd>" \
-p 1433:1433 \
--name sql1 \
-h sql1 \
-d mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04
30 changes: 30 additions & 0 deletions .github/actions/setup-x64/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Setup
runs:
using: composite
steps:
- shell: bash
run: |
set -x

sudo service mysql start
sudo service postgresql start
sudo service slapd start
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
# Ensure local_infile tests can run.
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo -u postgres psql -c "CREATE DATABASE test;"
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
sudo locale-gen de_DE

./.github/scripts/setup-slapd.sh

sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
sudo cp ext/snmp/tests/bigtest /etc/snmp
sudo service snmpd restart

sudo groupadd -g 5000 vmail
sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail
sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf
sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass
sudo service dovecot restart
27 changes: 27 additions & 0 deletions .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test
inputs:
runTestsParameters:
default: ''
required: false
runs:
using: composite
steps:
- shell: bash
run: |
set -x
export MYSQL_TEST_USER=root
export MYSQL_TEST_PASSWD=root
export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
export PDO_MYSQL_TEST_USER=root
export PDO_MYSQL_TEST_PASS=root
export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
export PDO_DBLIB_TEST_USER="pdo_test"
export PDO_DBLIB_TEST_PASS="password"
export SKIP_IO_CAPTURE_TESTS=1
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-j$(/usr/bin/nproc) \
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
--offline \
--show-diff \
--show-slow 1000 \
--set-timeout 120
20 changes: 20 additions & 0 deletions .github/actions/test-macos/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test
inputs:
runTestsParameters:
default: ''
required: false
runs:
using: composite
steps:
- shell: bash
run: |
set -x
export SKIP_IO_CAPTURE_TESTS=1
export CI_NO_IPV6=1
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-j$(sysctl -n hw.ncpu) \
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
--offline \
--show-diff \
--show-slow 1000 \
--set-timeout 120
Loading