PHP 7.4 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.4.1 is not recommended. PHP 7.4.33 is the latest version in the series.
Downloads
Source Code
git clone https://github.com/php/php-src.git --depth 1 --branch php-7.4.1
./buildconf
), configuring the build ./configure
, and running make
.Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
Windows binaries
Docker/Podman Containers
docker pull php:7.4.1-cli-alpine
docker pull php:7.4.1-cli
docker pull php:7.4.1-fpm-alpine
docker pull php:7.4.1-apache
docker pull php:7.4.1-fpm
ChangeLog
Core
- Fixed bug #78810 (RW fetches do not throw "uninitialized property" exception).
- Fixed bug #78868 (Calling __autoload() with incorrect EG(fake_scope) value).
- Fixed bug #78296 (is_file fails to detect file).
- Fixed bug #78883 (fgets(STDIN) fails on Windows).
- Fixed bug #78898 (call_user_func(['parent', ...]) fails while other succeed).
- Fixed bug #78904 (Uninitialized property triggers __get()).
- Fixed bug #78926 (Segmentation fault on Symfony cache:clear).
GD
- Fixed bug #78849 (GD build broken with -D SIGNED_COMPARE_SLOW).
- Fixed bug #78923 (Artifacts when convoluting image with transparency).
FPM
- Fixed bug #76601 (Partially working php-fpm ater incomplete reload).
- Fixed bug #78889 (php-fpm service fails to start).
- Fixed bug #78916 (php-fpm 7.4.0 don't send mail via
mail()
).
Intl
- Implemented FR #78912 (INTL Support for accounting format).
Mysqlnd
- Fixed bug #78823 (ZLIB_LIBS not added to EXTRA_LIBS).
OPcache
- Fixed $x = (bool)$x; with opcache (should emit undeclared variable notice).
- Fixed bug #78935 (Preloading removes classes that have dependencies).
PCRE
- Fixed bug #78853 (
preg_match()
may return integer > 1).
Reflection
- Fixed bug #78895 (Reflection detects abstract non-static class as abstract static. IS_IMPLICIT_ABSTRACT is not longer used).
Standard
Commit List
Adam Harvey
- Make the UPGRADING note about ArrayObject more explicit in 00df73c30d
Arjen de Korte
- Fix bug #78823: add zlib library to mysqlnd in ee4295b4ce
Christoph M. Becker
- Fix test cases which fail on Windows debug builds in 60081ca20d
- Fix test case for Windows in ce047e6091
- Fix ASLR related invalid opline handler issues in 39d04f15f8
- Update NEWS in f6eac76b65
- Fix #78849: GD build broken with -D SIGNED_COMPARE_SLOW in 9b92c1d154
- Fix #78853:
preg_match()
may return integer > 1 in e1da72bdf1 - Fix #77638: var_export'ing certain class instances segfaults in 23c65a8173
- Fix #78840: imploding $GLOBALS crashes in fee38633d2
- Prevent parallel test conflicts in 4ac3bda462
- Adapt test cases for Oniguruma 6.9.4 in c55d09c2f5
- Partially revert "Adapt test cases for Oniguruma 6.9.4" in ff2140c49d
- Add missing skip checks in 8c4b0ddde5
- Upgrade to Oniguruma 6.9.4 in 1979c5d16f
- Fix #78833: Integer overflow in pack causes out-of-bound access in db420cb6a1
- Fix #78296: is_file fails to detect file in bb735c9e9e
- Fix #78814: strip_tags allows / in tag name => whitelist bypass in 600f1f898f
- Fix #78883: fgets(STDIN) fails on Windows in 996f217aa5
- Next is 7.3.14 in 65bbc67063
- Use curlmime*() functions if available in e1202733a5
- Extend CURLFile to support streams in 17a9f1401a
- Fix #78912: INTL Support for accounting format in 505cc77cbe
- Improve error message in 9e22c3d4d9
Derick Rethans
- PHP-7.4 is now 7.4.1-dev in e99406f4d1
- Zend Engine version is no longer in -dev in 51ac4e302c
- WIP: Merge NEWS in c16cbfd1da
- Consolidate NEWS for 7.4.0 release in 71d42dc794
- Next release is 7.4.1, not 7.4.2 in 292c5afa13
- Update versions for PHP 7.4.1 in b1a8ab0ba1
Dmitry Stogov
- Fixed bug #78714 (funcs returning pointer can't use call convention spec) in ecd0c5b6ad
- ws in c3f23642da
- Fixed wrong constant usage in 9083e178f6
- Fixed bug #78868 (Calling __autoload() with incorrect EG(fake_scope) value) in bb30fe9e2b
- Fixed bug #78895 (Reflection detects abstract non-static class as abstract static. IS_IMPLICIT_ABSTRACT is not longer used) in 42a2fb8411
- Call
zend_unregister_ini_entries()
when unload extension loaded through dl() without MSHUTDOWN callback in 92c23e1fd3 - Export
zend_init_func_run_time_cache()
in 03d1c788ea
Fabien Villepinte
- Add more CONFLICTS tags in 92fd96531c
George Wang
- Added environment LSAPI_CLEAN_SHUTDOWN to control clean shutdown. Update SAPI version to LiteSpeed v7.6 in c7141412ce
Jakub Zelenka
- Add NEWS entry for bug #76601 fix in 29c7c9e8ed
- Fix bug #78889 (php-fpm service fails to start) in 67cd4271e9
- Fix bug #78916 (php-fpm 7.4.0 don't send mail via
mail()
) in ac042f839f
Maksim Nikulin
- Do not let PHP-FPM children miss SIGTERM, SIGQUIT in e37bd5dcc2
Nikita Popov
- Fixed bug #78810 in 266f3a02bc
- Handle reallocated root buffer during GC destroy phase in 3f4a15113c
- Add
ReflectionMethod::getClosure()
change to UPGRADING in 9533a815d5 - Fixed bug #78898 in 6540797f1e
- Preload: Better reason message for internal parents on windows in 7cbf31a3c7
- Fix AST printing of nullable builtin types in fac43d6515
- Fix mysqli ssl tests in 6b7cb4a8d7
- Fix timeout tests in e760d94f4b
- Fix intermittent error in
pdo_mysql___construct_options.phpt
in 8753975418 - Fix constant evaluation of && and || in 249e49092d
- Fixed bug #78904: Don't call any magic for uninitialized typed properties in 84354c62b3
- Use unmangled named in property type inheritance error in 5fcc12f505
- Fix bug #78887: Add upgrading note about
get_declared_classes()
order in 3d90b770e8 - Fixed bug #78926: Handle class table reallocation on failed link in 32c1f37574
- Fix build in 8d36d79d57
- Fix DCE with FE_FETCH in 87691e74e5
- Fix merge mistake in 4313659bb9
- Fixed bug #78935: Check that all linked classes can be preloaded in 3f86adb0ef
- Add support for class_alias to preloading in baf3a9133b
- Fix release build failure in d6f86caa11
- Fix incorrect
zend_try
usage in 5ddcacac2e - Set zend.exception_ignore_args=0 in
run-tests.php
in e87dc32569
Remi Collet
- next is 7.2.27 in d2cfb63f02
Stanislav Malyshev
- Fix bug #78804 - Segmentation fault in
Locale::filterMatches
in 2c9926f156 - Test fixes in 906168e9fb
- Update NEWS in c5b16078e3
Tyson Andre
- Fix $x = (bool)$x; for undefined with opcache in a2c41c0ea6
- Handle reallocated root buffer during GC destroy phase (v2) in b037fe5bd1
- Fix print_r return types in opcache in c8e9aa854c
willson-chen
- Fix #78923: Artifacts when convoluting image with transparency in b5d2cbe027