Skip to content

merge #17

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 320 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
320 commits
Select commit Hold shift + click to select a range
01996d1
Merge branch 'PHP-8.1'
nikic Apr 15, 2022
d16d251
Move MAY_BE_REF check into COPY_SSA_OBJ_TYPE
nikic Apr 15, 2022
4026dae
Merge branch 'PHP-8.0' into PHP-8.1
nikic Apr 15, 2022
7408da7
Merge branch 'PHP-8.1'
nikic Apr 15, 2022
fc9fecb
Fix FPM zlog warning with var being uninitialized
devnexen Apr 15, 2022
2f0918c
Fix FPM socket clean up reallocation clang build warning
devnexen Apr 8, 2022
a576253
Merge branch 'PHP-8.0' into PHP-8.1
bukka Apr 15, 2022
1f0261a
Merge branch 'PHP-8.1'
bukka Apr 15, 2022
b0ab5d0
Don't set ce for by-ref return type
nikic Apr 15, 2022
701e10c
Merge branch 'PHP-8.1'
nikic Apr 15, 2022
4bd7f4e
Check that MAY_BE_REF variables cannot have a ce
nikic Apr 15, 2022
04e59c9
Error handling for UTF-8 complies with WHATWG specification
alexdowad Apr 15, 2022
3f12d26
Merge branch 'PHP-8.1'
alexdowad Apr 16, 2022
df4c276
Check opcode rather than result_type for R/IS type inference
nikic Apr 16, 2022
74c0ede
Remove unnecessary abstract function check in zend_get_call_op()
nikic Apr 17, 2022
fbb7393
Handle other DO_FCALL opcodes in NEW live range calculation
nikic Apr 17, 2022
6ed3b57
Fix incorrect constant propagation for VERIFY_RETURN_TYPE
dstogov Apr 18, 2022
c3a3054
JIT: Fixed incorrect guard
dstogov Apr 18, 2022
dc374a0
Merge branch 'PHP-8.1'
dstogov Apr 18, 2022
462dc9d
Don't specify ce for MAY_BE_REF STATIC_PROP_FETCH
nikic Apr 18, 2022
d87ba95
sapi/*: move duplicate "--define" code to library
MaxKellermann Mar 22, 2022
11f950e
Don't optimize trailing args for prototype fbc
nikic Apr 18, 2022
4dc669a
Merge branch 'PHP-8.1'
nikic Apr 18, 2022
18b4e36
Move check for named params in fcall optimization earlier
nikic Apr 18, 2022
2aba4f8
Merge branch 'PHP-8.1'
nikic Apr 18, 2022
a8b6aea
Remove unused macros
nikic Apr 18, 2022
8f02d7b
Remove unnecessary bailout in fcall optimization
nikic Apr 18, 2022
dad5cb4
Fix GH-8408: bug68547.phpt fails without multibyte support
cmb69 Apr 20, 2022
e9b9fec
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Apr 20, 2022
37f91e4
[ci skip] Merge branch 'PHP-8.1'
cmb69 Apr 20, 2022
c2547ab
Add some const qualifiers in zend_string/hash (#8304)
Girgias Apr 20, 2022
7061c40
[skip-ci] update UPGRADING
Girgias Apr 20, 2022
4397811
Fix preloading of constants containing enums
iluuu1994 Apr 14, 2022
3b4eaf6
Merge branch 'PHP-8.1'
iluuu1994 Apr 21, 2022
36de002
Verify generated files are up to date in CI
mvorisek Apr 2, 2022
cf70047
Merge branch 'PHP-8.0' into PHP-8.1
iluuu1994 Apr 21, 2022
4dec645
Merge branch 'PHP-8.1'
iluuu1994 Apr 21, 2022
1dc6dba
Only check tracked files in verify-generated-files
iluuu1994 Apr 21, 2022
79eba02
Merge branch 'PHP-8.0' into PHP-8.1
iluuu1994 Apr 21, 2022
bf6c96a
Merge branch 'PHP-8.1'
iluuu1994 Apr 21, 2022
c854bb2
Fixed GH-8400: bug73837.phpt makes no sense
derickr Apr 22, 2022
15ee285
Merge branch 'PHP-8.0' into PHP-8.1
derickr Apr 22, 2022
a690a56
Merge branch 'PHP-8.1'
derickr Apr 22, 2022
7a45dcf
Introduce CURLOPT_XFERINFOFUNCTION
devnexen Dec 24, 2021
f20e11c
Clear recorded errors before executing shutdown functions
arnaud-lb Apr 3, 2022
d8612fb
Fix bug #77023: FPM cannot shutdown processes
bukka Apr 16, 2022
abd56ae
Merge branch 'PHP-8.0' into PHP-8.1
bukka Apr 22, 2022
436cffc
Merge branch 'PHP-8.1'
bukka Apr 22, 2022
25cb9cd
Fix GH-8232 - always reference classes in `var_export()` via their FQCN
Ocramius Mar 21, 2022
d0f1b98
Fix GH-8421: Attributes that target functions are not valid for anony…
ollieread Apr 22, 2022
82d3a83
Merge branch 'PHP-8.0' into PHP-8.1
iluuu1994 Apr 23, 2022
91fe807
Merge branch 'PHP-8.1'
iluuu1994 Apr 23, 2022
4d6965d
Add missing news entry for GH-8421
iluuu1994 Apr 23, 2022
bfad99f
Merge branch 'PHP-8.0' into PHP-8.1
iluuu1994 Apr 23, 2022
f06410a
Merge branch 'PHP-8.1'
iluuu1994 Apr 23, 2022
820f695
Use bit shift to set bitflags in standard/file.h (#8428)
divinity76 Apr 23, 2022
ef287bf
Minor refactoring of std string extension (#8196)
Girgias Apr 23, 2022
1e56268
fpm: listen backlog should default to -1 also on Linux
crrodriguez Apr 20, 2022
4ec92c6
Update NEWS and www.conf with listen.backlog default change
bukka Apr 23, 2022
fa6d97d
main/streams/streams: use copy_file_range() on Linux (#8413)
MaxKellermann Apr 23, 2022
6186ecd
Fix GH-8273: SplFileObject: key() returns wrong value
Girgias Apr 7, 2022
660ef91
Fix GH-8273: SplFileObject: key() returns wrong value
Girgias Apr 7, 2022
cf51d8f
Merge branch 'PHP-8.1'
Girgias Apr 23, 2022
ff90d42
Fix FPM kqueue handler fix remove callback typo
devnexen Apr 18, 2022
8da14a3
Merge branch 'PHP-8.0' into PHP-8.1
bukka Apr 23, 2022
5328589
Merge branch 'PHP-8.1'
bukka Apr 23, 2022
f5d9e7c
Fix GH-8364: msgfmt_format $values may not support references
cmb69 Apr 20, 2022
1c0dc2a
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Apr 24, 2022
19273ff
Merge branch 'PHP-8.1'
cmb69 Apr 24, 2022
2397e76
Fix GH-8433: Assigning function pointers to structs in FFI leaks memory
bwoebi Apr 24, 2022
01b91cb
Merge branch 'PHP-8.0' into PHP-8.1
bwoebi Apr 24, 2022
ab1d5a9
Merge branch 'PHP-8.1'
bwoebi Apr 24, 2022
1254aa4
Avoid setting ce for ref return_info
nikic Apr 24, 2022
a74b865
Add missing SKIPIF for new ext/ffi test
bwoebi Apr 24, 2022
ff6b813
Merge branch 'PHP-8.0' into PHP-8.1
bwoebi Apr 24, 2022
7f34afc
Merge branch 'PHP-8.1'
bwoebi Apr 24, 2022
460bbc8
Add clarifying comment for SEND_VAL usage
nikic Apr 24, 2022
619f40f
Fix leak introduced by GH-8241 (#8403)
iluuu1994 Apr 25, 2022
8286de2
Fix type narrowing warning during type inference of ZEND_FETCH_DIM_W
dstogov Apr 25, 2022
2cff0e6
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Apr 25, 2022
9e6eb9d
Merge branch 'PHP-8.1'
dstogov Apr 25, 2022
3e78964
Fix type inference
dstogov Apr 25, 2022
e14dc15
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Apr 25, 2022
992c806
Merge branch 'PHP-8.1'
dstogov Apr 25, 2022
3b73545
Reorder optimization passes to avoid miss-optimization
dstogov Apr 25, 2022
1aa5e93
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Apr 25, 2022
73514d6
Merge branch 'PHP-8.1'
dstogov Apr 25, 2022
948ef10
Fix ISSET_ISEMPTY_VAR missoptimization
dstogov Apr 25, 2022
27efd12
Merge branch 'PHP-8.1'
dstogov Apr 25, 2022
30f4c72
Fix GH-8218: ob_end_clean does not reset Content-Encoding header
cmb69 Apr 12, 2022
e063243
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Apr 25, 2022
f107f96
Merge branch 'PHP-8.1'
cmb69 Apr 25, 2022
3564eaf
Fixed tests
dstogov Apr 26, 2022
e9d65c8
Merge branch 'PHP-8.0' into PHP-8.1
dstogov Apr 26, 2022
45d7695
Merge branch 'PHP-8.1'
dstogov Apr 26, 2022
52a18a6
Prepare for PHP 8.0.20
carusogabriel Apr 26, 2022
990a8cd
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Apr 26, 2022
7ce5e0a
[ci skip] Merge branch 'PHP-8.1'
cmb69 Apr 26, 2022
4bb0dd4
Haiku fix ZTS build disabling `tsrm_ls_cache` usage.
devnexen Apr 11, 2022
4c0639d
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 Apr 26, 2022
22eddb3
Merge branch 'PHP-8.1'
cmb69 Apr 26, 2022
87f341b
Return early when the timezone info is NULL.
derickr Apr 26, 2022
bc43e69
Merge branch 'PHP-8.0' into PHP-8.1
derickr Apr 26, 2022
a7eda3d
Merge branch 'PHP-8.1'
derickr Apr 26, 2022
b461c46
Use the new RETURN_THROWS() instead of just returning NULL
derickr Apr 26, 2022
97ffd75
Merge branch 'PHP-8.0' into PHP-8.1
derickr Apr 26, 2022
3648610
Merge branch 'PHP-8.1'
derickr Apr 26, 2022
fb819fa
Prepare for PHP 8.1.7
ramsey Apr 27, 2022
a4179e4
Fix test for curl 7.83.0
cmb69 Apr 27, 2022
0df2886
Add skip for FPM resource heavy tests
bukka Apr 27, 2022
21d551a
Merge branch 'PHP-8.0' into PHP-8.1
bukka Apr 27, 2022
09d313d
Merge branch 'PHP-8.1'
bukka Apr 27, 2022
b5db594
Refacto php_module_startup() (#8303)
Girgias Apr 27, 2022
3c28be8
Close GH-8306: don't use of bitwise '|' with boolean operands
cmb69 Apr 26, 2022
81d4d5d
strlcpy/strlcat update to last openbsd version.
devnexen Apr 17, 2022
1944c14
Fix ReflectionProperty::__toString() of properties containing enums
iluuu1994 Apr 28, 2022
90a845c
Merge branch 'PHP-8.1'
iluuu1994 Apr 29, 2022
8b2ee53
Add DateTime/DateTimeImmutable's __serialize and __unserialize methods
derickr Apr 14, 2022
181623f
Add DateTimeZone's __serialize and __unserialize methods
derickr Apr 14, 2022
6f2c501
Fixed memory leak with unserialize was called multiple times and an a…
derickr Apr 14, 2022
b46632e
Merged pull request #8422
derickr Apr 29, 2022
3be8b5f
Remove fake properties from DateInterval
derickr Apr 14, 2022
f869a54
Add DateInterval's __serialize and __unserialize methods
derickr Apr 15, 2022
76e852e
Fixed memory leak with manual calls to DateInterval::__unserialize
derickr Apr 15, 2022
f4e5010
Show the 'have_special_relative' property in var_dumps, and disallow …
derickr Apr 15, 2022
c280121
Add a few test cases for DateInterval
derickr Apr 15, 2022
c8a6a8a
Rename have_special_relative to from_string, fix serialisation constr…
derickr Apr 22, 2022
83a6bcc
Fixed cloning DateInterval
derickr Apr 22, 2022
cae1d4a
Add support for serialising all DateInterval objects
derickr Apr 22, 2022
5fb3641
Fixed cloning DateInterval
derickr Apr 22, 2022
d57b052
Extended tests
derickr Apr 29, 2022
8a67d7c
Update related test in ext/standard
derickr Apr 29, 2022
ef30c9e
Update 32-bit only test
derickr Apr 29, 2022
c1ad706
Fixed reference count issue with zend_string
derickr Apr 29, 2022
2768597
Merged pull request #8459
derickr Apr 29, 2022
fb3cba4
Fix multi-same-name-fields in Curl for old (> 7.56.0) versions
derickr Apr 29, 2022
f7a5353
Turn off "Expect" header in test
derickr Apr 29, 2022
0bcffa6
Merged pull request #8460
derickr Apr 29, 2022
ef06f0f
Fix FPM ACL build check on MacOS
devnexen Apr 18, 2022
0332b62
Merge branch 'PHP-8.0' into PHP-8.1
bukka Apr 29, 2022
e28e0ad
Update NEWS entry with correct version for FPM ACL fix
bukka Apr 29, 2022
6e0a378
Merge branch 'PHP-8.1'
bukka Apr 29, 2022
82dae61
Move FPM ACS fix NEWS entry to 8.0.20
bukka Apr 29, 2022
1e4dcbf
Merge branch 'PHP-8.0' into PHP-8.1
bukka Apr 29, 2022
5147f4c
Merge branch 'PHP-8.1'
bukka Apr 29, 2022
31692a1
Support zend alloc USE_ZEND_ALLOC_HUGE_PAGES option on MacOS
devnexen Dec 21, 2021
be04769
main: set IP_BIND_ADDRESS_NO_PORT if available when connecting to rem…
crrodriguez Apr 20, 2022
9e74e58
Fix whitespaces
arnaud-lb Apr 29, 2022
6048762
Fix test XFAIL, update phar to use spl_autoload_register
mvorisek Apr 27, 2022
c9fba10
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 May 2, 2022
af40f06
Merge branch 'PHP-8.1'
cmb69 May 2, 2022
389d113
bug: Fix type for $index in ZipArchive::replaceFile
kingkero May 2, 2022
bf46bc8
Fix test XFAIL, update phar to use spl_autoload_register
mvorisek Apr 27, 2022
0e9c7c1
Merge branch 'PHP-8.0' into PHP-8.1
remicollet May 2, 2022
a13b94c
Merge branch 'PHP-8.1'
remicollet May 2, 2022
62a650a
bug: Fix type for $index in ZipArchive::replaceFile
kingkero May 2, 2022
c4a37c5
Merge branch 'PHP-8.1'
remicollet May 2, 2022
2d4cc0e
[ci skip] NEWS
remicollet May 2, 2022
8ed93da
Merge branch 'PHP-8.0' into PHP-8.1
remicollet May 2, 2022
861b81b
[ci skip] NEWS
remicollet May 2, 2022
882ad27
Merge branch 'PHP-8.1'
remicollet May 2, 2022
6672a5e
bump zip version
remicollet May 2, 2022
136ef6f
Fix PDO URI test
mvorisek May 2, 2022
7612ea8
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 May 3, 2022
e7a7971
Merge branch 'PHP-8.1'
cmb69 May 3, 2022
ad7b9f4
Fix GH-8235: iterator_count() may run indefinitely
cmb69 Apr 27, 2022
e004e1a
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 May 3, 2022
e5d9859
Merge branch 'PHP-8.1'
cmb69 May 3, 2022
722e9b9
Fix test for curl 7.83.0
cmb69 Apr 27, 2022
5927226
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 May 3, 2022
251cb46
[ci skip] Merge branch 'PHP-8.1'
cmb69 May 3, 2022
ef5478b
Reorder param parsing and reflection object retrieval
kocsismate May 3, 2022
fc04a6e
Throw when calling ReflectionAttribute::__construct()
kocsismate May 3, 2022
74924ad
Fix get_function_or_method_name when included file is scoped (#8467)
vajexal May 3, 2022
510061b
Merge branch 'PHP-8.0' into PHP-8.1
kocsismate May 3, 2022
da857c9
Merge branch 'PHP-8.1'
kocsismate May 3, 2022
d54bcbb
Add DatePeriod's __serialize and __unserialize methods (#8464)
derickr May 3, 2022
9b0e391
[ci skip] Mention selection of a veteran + 1 or 2 rookies
ramsey May 4, 2022
710294c
Fix zend_test tests
cmb69 May 4, 2022
ec92130
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
cmb69 May 4, 2022
829f297
[ci skip] Merge branch 'PHP-8.1'
cmb69 May 4, 2022
9a90bd7
Deprecate ${} string interpolation
iluuu1994 Mar 12, 2022
92f8f19
Fixed GH-8471: Segmentation fault when converting immutable and mutab…
derickr May 5, 2022
dadc843
Merged pull request #8497
derickr May 5, 2022
7670ee4
Merge branch 'PHP-8.0' into PHP-8.1
derickr May 5, 2022
5164f60
Merge branch 'PHP-8.1'
derickr May 5, 2022
95f5f9d
Adding missing NEWS entry
derickr May 5, 2022
b2be889
Merge branch 'PHP-8.0' into PHP-8.1
derickr May 5, 2022
de54f83
Merge branch 'PHP-8.1'
derickr May 5, 2022
4556f9d
[skip ci] Fix alternative string interpolation suggestion in UPGRADING
iluuu1994 May 5, 2022
f07a08d
Fix unregistering ini entries of dynamically loaded extension (#8435)
arnaud-lb May 6, 2022
0a5a761
Merge branch 'PHP-8.1'
arnaud-lb May 6, 2022
c9787b4
Fix skip clause
cmb69 May 6, 2022
c2ca9cd
Don't unnecessarily skip mb related tests
cmb69 May 6, 2022
812068f
Use zend_register_ini_entries_ex / zend_unregister_ini_entries_ex (#8…
arnaud-lb May 6, 2022
a82ee8e
[ci skip] NEWS
arnaud-lb May 6, 2022
80a5a62
[ci skip] Merge branch 'PHP-8.1'
arnaud-lb May 6, 2022
5b71b66
[ci skip] NEWS
arnaud-lb May 6, 2022
b388e95
Fix build with Valgrind without I_REPLACE_SONAME_FNNAME_ZU symbol
vobruba-martin May 3, 2022
be9adc4
Merge branch 'PHP-8.1'
Girgias May 7, 2022
1584352
Add fuzzer for mb_convert_encoding
nikic May 8, 2022
9e87be4
Add generate_mbstring_dict.php
nikic May 9, 2022
a7a5902
Fix mysqli tests wrt. MySQL 8.0.28
cmb69 May 6, 2022
8e688e0
Merge branch 'PHP-8.0' into PHP-8.1
cmb69 May 9, 2022
7e272b9
Merge branch 'PHP-8.1'
cmb69 May 9, 2022
be11bcb
Add ReflectionFunction::isAnonymous()
nicolas-grekas May 5, 2022
e9e2cf0
Fix test wrt. deprecation of float to int conversions
cmb69 May 9, 2022
6db78f3
Merge branch 'PHP-8.1'
cmb69 May 9, 2022
f590782
Add ReflectionMethod::hasPrototype method
ollieread May 4, 2022
9601475
Minimal refactoring of CLI SAPI (#8519)
Girgias May 9, 2022
0fad4d1
Fix ASAN build
Girgias May 10, 2022
d4e24e7
Fix Windows build
Girgias May 10, 2022
3cb3ee6
Drop useless network/syslog_basic.phpt (#8526)
cmb69 May 10, 2022
23a2030
Fix bug #72185: php-fpm writes empty fcgi record causing nginx 502
bukka May 7, 2022
82eea0e
Merge branch 'PHP-8.0' into PHP-8.1
bukka May 10, 2022
9149d16
Merge branch 'PHP-8.1'
bukka May 10, 2022
b1b79c7
Fix memory leak
dstogov May 11, 2022
f080a90
Merge branch 'PHP-8.1'
dstogov May 11, 2022
3f1e1b9
Fix type inference
dstogov May 11, 2022
f1fc58e
Merge branch 'PHP-8.0' into PHP-8.1
dstogov May 11, 2022
2495459
Merge branch 'PHP-8.1'
dstogov May 11, 2022
84c1e99
Fix type inference
dstogov May 11, 2022
89fa775
Merge branch 'PHP-8.1'
dstogov May 11, 2022
97ea6ad
Test snmp on Windows CI
cmb69 May 10, 2022
1eab5b7
GH-8458: DateInterval::createFromDateString does not throw non-relati…
derickr May 5, 2022
b51a5c3
Merged pull request #8500
derickr May 11, 2022
c732549
ext/opcache/ZendAccelerator: fix accel_deactivate_now() prototype (#8…
MaxKellermann May 12, 2022
81d1a1b
Update bug tracker links
cmb69 Mar 30, 2022
d2bb59c
Test standard mail and imap on Windows CI
cmb69 May 12, 2022
6c25413
Add JIT guards for INIT_FCALL instructions and functions that may be …
dstogov May 12, 2022
f948370
Merge branch 'PHP-8.1'
dstogov May 12, 2022
12702a2
Add "N" and "o" format specifiers to idate()
xPaw Dec 29, 2021
f06fb22
Merged pull request #7586
derickr May 13, 2022
37b3092
Fix more specific return type hints for some ext/date methods
kocsismate May 12, 2022
8b991b4
Add static return type for DateTime*::createFrom*() when possible
kocsismate May 13, 2022
d8f7797
[ci skip] NEWS
arnaud-lb May 13, 2022
a3ceb05
[ci skip] Merge branch 'PHP-8.1'
arnaud-lb May 13, 2022
332bd03
Do not optimize out ini_get() when the entry does not exist during co…
arnaud-lb May 13, 2022
33b8ef9
Do not optimize out ini_get() when the entry does not exist during co…
arnaud-lb May 13, 2022
5a39f4c
[ci skip] NEWS
arnaud-lb May 13, 2022
80fbaec
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
arnaud-lb May 13, 2022
680afd1
[ci skip] NEWS
arnaud-lb May 13, 2022
298c1ab
Merge branch 'PHP-8.1'
arnaud-lb May 13, 2022
8b6e5e4
[ci skip] NEWS
arnaud-lb May 13, 2022
49549ea
Update libmysqlclient to 5.7.38
nikic May 13, 2022
cd6ae60
Merge branch 'PHP-8.1'
nikic May 13, 2022
926407f
Fix some MSAN complaints under Clang (#8553)
Girgias May 13, 2022
74f75db
Fix bug #79589: ssl3_read_n:unexpected eof while reading
bukka May 15, 2022
834e32e
Merge branch 'PHP-8.1'
bukka May 15, 2022
9b19d90
Refactor CLI SAPI php_cli_server_client struct to use zend_string (#8…
Girgias May 15, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ task:
- 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
- ./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-dl-test=shared --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
Expand Down
9 changes: 5 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
/UPGRADING merge=NEWS
/UPGRADING.INTERNALS merge=NEWS

# Enable commit diffs for binary PHP test files. Some PHP test files include
# special characters, such as ASCII control characters. Git recognizes these as
# binary and wouldn't generate diffs.
*.phpt diff
# Configure proper diff drivers to improve the context lines in the output
# of git diff and to improve token splitting for --word-diff.
*.phpt diff=php
*.php diff=php
*.[ch] diff=cpp
8 changes: 4 additions & 4 deletions .github/actions/apt-x64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ runs:
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
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
unzip instantclient-basiclite-linuxx64.zip && rm instantclient-basiclite-linuxx64.zip
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
unzip instantclient-sdk-linuxx64.zip && rm instantclient-sdk-linuxx64.zip
mv instantclient_*_* /opt/oracle/instantclient
# Interferes with libldap2 headers.
rm /opt/oracle/instantclient/sdk/include/ldap.h
1 change: 1 addition & 0 deletions .github/actions/configure-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ runs:
--enable-sysvmsg \
--with-ffi \
--enable-zend-test \
--enable-dl-test=shared \
--enable-intl \
--with-mhash \
--with-sodium \
Expand Down
1 change: 1 addition & 0 deletions .github/actions/configure-x64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ runs:
--enable-sysvmsg \
--with-ffi \
--enable-zend-test \
--enable-dl-test=shared \
--with-ldap \
--with-ldap-sasl \
--with-password-argon2 \
Expand Down
2 changes: 0 additions & 2 deletions .github/actions/install-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ runs:
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
12 changes: 12 additions & 0 deletions .github/actions/verify-generated-files/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Verify generated files are up to date
runs:
using: composite
steps:
- shell: bash
run: |
set -x
[[ "$OSTYPE" == "darwin"* ]] && export PATH="/usr/local/opt/bison/bin:$PATH"
scripts/dev/genfiles
Zend/zend_vm_gen.php
build/gen_stub.php -f
git add . -Nu && git diff --exit-code
11 changes: 11 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
GENERATE_MATRIX:
name: Generate Matrix
if: github.repository_owner == 'php' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
branches: ${{ steps.set-matrix.outputs.branches }}
Expand Down Expand Up @@ -74,21 +75,26 @@ jobs:
runTestsParameters: >-
${{ matrix.run_tests_parameters }}
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
- name: Test OpCache
uses: ./.github/actions/test-linux
with:
runTestsParameters: >-
${{ matrix.run_tests_parameters }}
-d zend_extension=opcache.so
-d opcache.enable_cli=1
- name: Test Function JIT
uses: ./.github/actions/test-linux
with:
runTestsParameters: >-
${{ matrix.run_tests_parameters }}
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
-d opcache.jit=1205
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
MACOS:
needs: GENERATE_MATRIX
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}
Expand Down Expand Up @@ -126,19 +132,24 @@ jobs:
with:
runTestsParameters: >-
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.protect_memory=1
-d opcache.jit_buffer_size=16M
- name: Test OpCache
uses: ./.github/actions/test-macos
with:
runTestsParameters: >-
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.protect_memory=1
- name: Test Function JIT
uses: ./.github/actions/test-macos
with:
runTestsParameters: >-
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.protect_memory=1
-d opcache.jit_buffer_size=16M
-d opcache.jit=1205
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
10 changes: 9 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ jobs:
- name: Test Tracing JIT
uses: ./.github/actions/test-linux
with:
runTestsParameters: -d zend_extension=opcache.so -d opcache.jit_buffer_size=16M
runTestsParameters: >-
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.jit_buffer_size=16M
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
MACOS_DEBUG_NTS:
runs-on: macos-10.15
steps:
Expand All @@ -78,5 +83,8 @@ jobs:
with:
runTestsParameters: >-
-d zend_extension=opcache.so
-d opcache.enable_cli=1
-d opcache.protect_memory=1
-d opcache.jit_buffer_size=16M
- name: Verify generated files are up to date
uses: ./.github/actions/verify-generated-files
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ supported branch of PHP that the bug affects (only green branches on
[the supported version page](https://www.php.net/supported-versions.php) are
supported). For example, at the time of writing, the lowest supported version is
PHP 8.0, which corresponds to the `PHP-8.0` branch in Git. Please also make sure
you add a link to the PR in the bug on [the bug tracker](https://bugs.php.net/).
you add a link to the PR in the bug on [the bug tracker](https://github.com/php/php-src/issues)
or [the old bug tracker](https://bugs.php.net/).

Pull requests implementing RFCs should be submitted against `master`.

Expand All @@ -49,7 +50,8 @@ them by using `git rebase` instead of `git merge`.
Fork the official PHP repository and send a pull request. A notification will be
sent to the pull request mailing list. Sending a note to PHP Internals list
(internals@lists.php.net) may help getting more feedback and quicker turnaround.
You can also add pull requests to [bug reports](https://bugs.php.net/).
You can also add pull requests to [bug reports](https://github.com/php/php-src/issues)
and [old bug reports](https://bugs.php.net/).

Read [Git access page](https://www.php.net/git.php) for help on using Git to get
and build PHP source code. We recommend to look at our
Expand Down
23 changes: 23 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,23 @@ PHP NEWS
. Fixed bug #81380 (Observer may not be initialized properly). (krakjoe)
. Fixed bug GH-7771 (Fix filename/lineno of constant expressions). (ilutov)
. Fixed bug GH-7792 (Improve class type in error messages). (ilutov)
. Support huge pages on MacOS. (David CARLIER)

- Curl:
. Added support for CURLOPT_XFERINFOFUNCTION. (David Carlier)

- Date:
. Fixed GH-8458 (DateInterval::createFromDateString does not throw if
non-relative items are present). (Derick)
. idate() now accepts format specifiers "N" (ISO Day-of-Week) and "o" (ISO
Year). (Pavel Djundik)

- FPM:
. Emit error for invalid port setting. (David Carlier)
. Added extra check for FPM proc dumpable on SELinux based systems.
(David Carlier)
. Added support for listening queue on macOS. (David Carlier)
. Changed default for listen.backlog on Linux to -1. (Cristian Rodríguez)

- Intl:
. Update all grandfathered language tags with preferred values
Expand All @@ -28,9 +40,20 @@ PHP NEWS
. Fixed bug #80909 (crash with persistent connections in PDO_ODBC). (Calvin
Buckley)

- Reflection:
. Added ReflectionFunction::isAnonymous(). (Nicolas Grekas)
. Added ReflectionMethod::hasPrototype(). (Ollie Read)

- Sodium:
. Added sodium_crypto_stream_xchacha20_xor_ic(). (Scott)

- SQLite3:
. Changed sqlite3.defensive from PHP_INI_SYSTEM to PHP_INI_USER. (bohwaz)

- Streams:
. Set IP_BIND_ADDRESS_NO_PORT if available when connecting to remote host.
(Cristian Rodríguez)

- Standard:
. net_get_interfaces() also reports wireless network interfaces on Windows.
(Yurun)
Expand Down
12 changes: 7 additions & 5 deletions TSRM/TSRM.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate
tsrm_resource_type *_tmp;
_tmp = (tsrm_resource_type *) realloc(resource_types_table, sizeof(tsrm_resource_type)*id_count);
if (!_tmp) {
tsrm_mutex_unlock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_ERROR, "Unable to allocate storage for resource"));
*rsrc_id = 0;
tsrm_mutex_unlock(tsmm_mutex);
return 0;
}
resource_types_table = _tmp;
Expand Down Expand Up @@ -331,10 +331,10 @@ TSRM_API ts_rsrc_id ts_allocate_fast_id(ts_rsrc_id *rsrc_id, size_t *offset, siz

size = TSRM_ALIGNED_SIZE(size);
if (tsrm_reserved_size - tsrm_reserved_pos < size) {
tsrm_mutex_unlock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_ERROR, "Unable to allocate space for fast resource"));
*rsrc_id = 0;
*offset = 0;
tsrm_mutex_unlock(tsmm_mutex);
return 0;
}

Expand All @@ -346,9 +346,9 @@ TSRM_API ts_rsrc_id ts_allocate_fast_id(ts_rsrc_id *rsrc_id, size_t *offset, siz
tsrm_resource_type *_tmp;
_tmp = (tsrm_resource_type *) realloc(resource_types_table, sizeof(tsrm_resource_type)*id_count);
if (!_tmp) {
tsrm_mutex_unlock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_ERROR, "Unable to allocate storage for resource"));
*rsrc_id = 0;
tsrm_mutex_unlock(tsmm_mutex);
return 0;
}
resource_types_table = _tmp;
Expand Down Expand Up @@ -736,13 +736,15 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
#if defined(__APPLE__) && defined(__x86_64__)
// TODO: Implement support for fast JIT ZTS code ???
return 0;
#elif defined(__x86_64__) && defined(__GNUC__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__)
#elif defined(__x86_64__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
!defined(__OpenBSD__) && !defined(__MUSL__) && !defined(__HAIKU__)
size_t ret;

asm ("movq _tsrm_ls_cache@gottpoff(%%rip),%0"
: "=r" (ret));
return ret;
#elif defined(__i386__) && defined(__GNUC__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__)
#elif defined(__i386__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
!defined(__OpenBSD__) && !defined(__MUSL__) && !defined(__HAIKU__)
size_t ret;

asm ("leal _tsrm_ls_cache@ntpoff,%0"
Expand Down
26 changes: 26 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ PHP 8.2 UPGRADE NOTES
1. Backward Incompatible Changes
========================================

- Date:
. DateTime::createFromImmutable() now has a tentative return type of static,
previously it was DateTime
. DateTimeImmutable::createFromMutable() now has a tentative return type of static,
previously it was DateTimeImmutable

- Standard:
. strtolower() and strtoupper() are no longer locale-sensitive. They now
perform ASCII case conversion, as if the locale were "C". Use
Expand All @@ -35,6 +41,10 @@ PHP 8.2 UPGRADE NOTES
* SplFileObject::ftell()
* SplFileObject::fgetc()
* SplFileObject::fpassthru()
. SplFileObject::hasChildren() now has a tentative return type of false,
previously it was bool
. SplFileObject::getChildren() now has a tentative return type of null,
previously it was ?RecursiveIterator

========================================
2. New Features
Expand All @@ -44,6 +54,8 @@ PHP 8.2 UPGRADE NOTES
. Added the #[\SensitiveParameter] attribute to redact sensitive data in
backtraces.
RFC: https://wiki.php.net/rfc/redact_parameters_in_back_traces
. It is now possible to use null and false as standalone types.
RFC: https://wiki.php.net/rfc/null-false-standalone-types

- Curl:
. Added CURLINFO_EFFECTIVE_METHOD option and returning the effective
Expand Down Expand Up @@ -100,6 +112,10 @@ PHP 8.2 UPGRADE NOTES

RFC: https://wiki.php.net/rfc/deprecate_partially_supported_callables

. The "${var}" and "${expr}" style string interpolations are deprecated and
will be removed in PHP 9. Use "$var"/"{$var}" or "{${expr}}", respectively.
RFC: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

- Mbstring:
. Use of QPrint, Base64, Uuencode, and HTML-ENTITIES 'text encodings' is
deprecated for all Mbstring functions. Unlike all the other text
Expand Down Expand Up @@ -128,6 +144,10 @@ PHP 8.2 UPGRADE NOTES
6. New Functions
========================================

- Reflection:
. ReflectionFunction::isAnonymous()
. ReflectionMethod::hasPrototype()

- Sodium:
. sodium_crypto_stream_xchacha20_xor_ic()

Expand Down Expand Up @@ -158,6 +178,9 @@ PHP 8.2 UPGRADE NOTES
- OCI8:
. The minimum Oracle Client library version required is now 11.2.

- SQLite3:
. sqlite3.defensive is now PHP_INI_USER.

- Standard:
. getimagesize() now reports the actual image dimensions, bits and channels
of AVIF images. Previously, the dimensions have been reported as 0x0, and
Expand All @@ -174,6 +197,9 @@ PHP 8.2 UPGRADE NOTES
- COM_DOTNET:
. LOCALE_NEUTRAL

- Curl:
. CURLOPT_XFERINFOFUNCTION

- Sockets:
. SO_INCOMING_CPU

Expand Down
Loading