php-src/ext
Niels Dossche c962a96c34 Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget
When the user does not fully consume the data stream, but instead opens
a new one, a memory leak occurs. Moreover, the state is invalid: when
more commands arrive they'll be handled out-of-sync because the state of
the client does not match what the server is doing.
This leads to all sorts of weirdness, for example:
  Warning: ftp_nb_fget(): OK.

Fix it by gracefully closing the old data stream when a new data stream
is started.

Closes GH-11606.
2023-07-07 17:55:53 +02:00
..
bcmath
bz2 Merge branch 'PHP-8.0' into PHP-8.1 2022-06-25 07:39:55 +01:00
calendar Add more specific array return type hints for various extensions - part 1 2021-11-07 08:46:25 +01:00
com_dotnet Merge branch 'PHP-8.0' into PHP-8.1 2022-06-18 11:50:14 +02:00
ctype
curl tests(ext-curl): fix HTTP/2 Server Push tests 2023-07-07 10:38:26 +02:00
date Fixed GH-11368: Date modify returns invalid datetime 2023-06-22 17:58:19 +01:00
dba Merge branch 'PHP-8.0' into PHP-8.1 2022-07-27 12:13:32 +02:00
dl_test Fix unregistering ini entries of dynamically loaded extension (#8435) 2022-05-06 15:25:44 +02:00
dom Revert "Fix GH-11404: DOMDocument::savexml and friends ommit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM" 2023-06-19 19:37:46 +02:00
enchant Add more specific array return type hints for various extensions - part 1 2021-11-07 08:46:25 +01:00
exif Fix GH-10834: exif_read_data() cannot read smaller stream wrapper chunk sizes 2023-05-12 23:37:00 +02:00
ffi Reset EG(trampoline).op_array.last_var that FFI may modify 2023-03-27 22:59:00 +02:00
fileinfo fileinfo: Backport xz detection fix 2023-07-01 17:58:38 +02:00
filter Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
ftp Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget 2023-07-07 17:55:53 +02:00
gd Fix most external GD 2.3.3 compatibility 2023-07-06 21:39:40 +02:00
gettext
gmp Merge branch 'PHP-8.0' into PHP-8.1 2022-09-13 11:33:09 +01:00
hash Fix GH-11180: hash_file() appears to be restricted to 3 arguments 2023-05-07 17:33:28 +02:00
iconv Merge branch 'PHP-8.0' into PHP-8.1 2022-04-25 14:29:44 +02:00
imap ext/imap/config.m4: -Werror=implicit-function-declaration compatibility. 2023-03-28 15:18:18 +01:00
intl [skip ci] XFAIL intl IntlCalendar::clear() test that may fail with ICU 73 2023-06-25 13:27:38 +02:00
json Expose JSON internal function to escape string 2023-05-13 18:41:33 +01:00
ldap Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create() 2022-12-16 14:36:30 +01:00
libxml Fix GH-11160: Few tests failed building with new libxml 2.11.0 2023-05-06 23:10:07 +02:00
mbstring Fix GH-11300: license issue: restricted unicode license headers 2023-07-01 21:55:21 +02:00
mysqli Fix mysql tests with non-standard server port 2023-04-20 08:45:14 +02:00
mysqlnd Fix GH-8979: Possible Memory Leak with SSL-enabled MySQL connections 2023-03-24 18:03:29 +01:00
oci8 Unparallelize IO heavy tests 2023-03-27 16:33:36 +02:00
odbc Merge branch 'PHP-8.0' into PHP-8.1 2022-06-13 14:43:51 +02:00
opcache Fixed incorrect VM stack overflow checks elimination 2023-06-20 11:59:36 +03:00
openssl Fix CS and checking for IPv6 SAN verify 2023-06-09 16:49:09 +01:00
pcntl Use waitpid(-1) over WAIT_ANY 2023-07-04 10:28:59 +02:00
pcre Revert "Mangle PCRE regex cache key with JIT option" 2023-06-22 23:13:37 +02:00
pdo Improve fix for bug #81740 2022-12-18 23:20:29 -07:00
pdo_dblib Merge branch 'PHP-8.0' into PHP-8.1 2022-08-26 14:59:08 +02:00
pdo_firebird Fix GH-10908: Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userland 2023-03-27 21:01:06 +02:00
pdo_mysql ext/pdo_mysql: mysql_handle_closer nullify some freed data. 2023-03-25 17:41:21 +00:00
pdo_oci Unparallelize IO heavy tests 2023-03-27 16:33:36 +02:00
pdo_odbc Fix missing and inconsistent error check on SQLAllocHandle 2023-03-15 21:36:50 +01:00
pdo_pgsql Merge branch 'PHP-8.0' into PHP-8.1 2022-09-05 17:26:13 +02:00
pdo_sqlite Fix GH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt 2023-06-22 20:49:00 +02:00
pgsql ext/pgsql: fix PGtrace invalid free issue. 2023-06-18 13:44:39 +01:00
phar Fix cross-compilation check in phar generation for FreeBSD 2023-06-13 19:09:58 +02:00
posix Fix GH-10202: posix_getgr(gid|nam)_basic.phpt fail 2023-01-02 16:54:47 +00:00
pspell
readline [skip ci] Fix race condition in readline test 2023-05-26 11:39:22 +02:00
reflection remove assert raising strange behavior with GCC 10 2023-03-15 09:05:44 +01:00
session Remove session ID set through REQUEST_URI 2023-06-22 12:35:55 +02:00
shmop
simplexml Fix the value param of SimpleXMLElement::addAttribute() 2021-12-22 12:35:59 +01:00
skeleton
snmp Fix bug #81598: Use C.UTF-8 as LC_CTYPE locale by default 2021-12-05 21:03:27 +01:00
soap Merge branch 'PHP-8.0' into PHP-8.1 2023-06-06 18:01:56 -04:00
sockets Fix uninitialized variable accesses in sockets/conversions 2023-03-29 19:44:30 +02:00
sodium
spl Fix GH-11338: SplFileInfo empty getBasename with more than one slash 2023-05-30 17:29:18 +02:00
sqlite3 Fix replaced error handling in SQLite3Stmt::__construct 2023-07-07 10:24:54 +02:00
standard Implement flaky test section 2023-07-06 09:45:35 +02:00
sysvmsg
sysvsem
sysvshm Add Windows GitHub actions build 2023-03-01 23:02:03 +01:00
tidy Unparallelize IO heavy tests 2023-03-27 16:33:36 +02:00
tokenizer Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
xml Fix GH-11160: Few tests failed building with new libxml 2.11.0 2023-05-06 23:10:07 +02:00
xmlreader Merge branch 'PHP-8.0' into PHP-8.1 2023-02-12 21:33:39 -07:00
xmlwriter Fix missing check for xmlTextWriterEndElement 2023-01-15 15:34:43 +00:00
xsl
zend_test Add missing zend_test_crash message initialization 2023-04-16 10:54:39 +01:00
zip [skip ci] Fix tmp file clash in ext/zip/tests/oo_cancel.phpt 2023-05-01 15:28:59 +02:00
zlib Fix incorrect string length for output_handler in zlib ini code 2023-02-23 18:47:26 +00:00
ext_skel.php