php-src/ext/ftp/tests
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
..
001.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
002.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
003.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
004.phpt Propagate success status of ftp_close() to userland 2023-03-03 15:26:11 +01:00
005.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
007.phpt Move FTP extension class FTPConnection to FTP\Connection 2021-05-08 16:40:10 +02:00
bug7216-2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug7216.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug27809.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug37799.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug39458-2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug39458.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug39583-2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug39583.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
bug79100.phpt Use EXTENSIONS instead of SKIPIF section 2021-05-03 18:37:42 +02:00
bug80901.phpt Remove no longer used "log_errors_max_len" ini directive (#6838) 2021-05-10 19:26:33 +02:00
cert.pem
dead-resource.phpt Move FTP extension class FTPConnection to FTP\Connection 2021-05-08 16:40:10 +02:00
filesize_large.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_alloc_basic1.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_alloc_basic2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_append.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_chmod_basic.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_constructor.phpt Move FTP extension class FTPConnection to FTP\Connection 2021-05-08 16:40:10 +02:00
ftp_delete.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_exec_basic.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_fget_basic.phpt Add %0 format to run-tests.php 2021-05-29 11:33:13 +02:00
ftp_fget_basic1.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_fget_basic2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_fget_basic3.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_fput.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_get_basic.phpt Add %0 format to run-tests.php 2021-05-29 11:33:13 +02:00
ftp_get_option.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_mdtm_basic.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_mlsd.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_mlsd_empty_directory.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_mlsd_missing_directory.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_continue.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_fget_basic1.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_fget_basic2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_fget_basic3.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_fput.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_get_large.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_nb_put.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_pasv.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_rawlist_basic1.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_rawlist_basic2.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_rename_basic1.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_rmdir_basic.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_set_option.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_set_option_errors.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_site_basic.phpt Migrate skip checks to --EXTENSIONS--, p3 2021-04-03 15:23:25 +02:00
ftp_ssl_connect_error.phpt Add host for php_network_getaddresses getaddrinfo failed error message. (#7181) 2021-06-22 17:18:09 +02:00
gh10521.phpt Fix GH-10521: ftp_get/ftp_nb_get resumepos offset is maximum 10GB 2023-03-20 23:20:21 +01:00
gh10562.phpt Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget 2023-07-07 17:55:53 +02:00
server.inc Fix GH-10521: ftp_get/ftp_nb_get resumepos offset is maximum 10GB 2023-03-20 23:20:21 +01:00