Skip to content

Commit 61b0d58

Browse files
ndosschebukka
andauthored
ftp: Fix weird typo (#20295)
* ftp: Fix weird typo In 8827f8e the async functions were renamed to nb functions. So this was just a find+replace of async to nb. The diff shows that "no asyncronous transfer to continue" was replaced with "no nbronous transfer to continue". Makes no sense. * Update ext/ftp/php_ftp.c Co-authored-by: Jakub Zelenka <bukka@php.net> --------- Co-authored-by: Jakub Zelenka <bukka@php.net>
1 parent ed9529a commit 61b0d58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/ftp/php_ftp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ PHP_FUNCTION(ftp_nb_get)
820820
}
821821
/* }}} */
822822

823-
/* {{{ Continues retrieving/sending a file nbronously */
823+
/* {{{ Continues to retrieve or send a file in non-blocking mode */
824824
PHP_FUNCTION(ftp_nb_continue)
825825
{
826826
zval *z_ftp;
@@ -833,7 +833,7 @@ PHP_FUNCTION(ftp_nb_continue)
833833
GET_FTPBUF(ftp, z_ftp);
834834

835835
if (!ftp->nb) {
836-
php_error_docref(NULL, E_WARNING, "No nbronous transfer to continue");
836+
php_error_docref(NULL, E_WARNING, "No non-blocking transfer to continue");
837837
RETURN_LONG(PHP_FTP_FAILED);
838838
}
839839

ext/ftp/tests/005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int(-1)
8585
Warning: ftp_mkdir(): Command not implemented (7). in %s005.php on line %d
8686
bool(false)
8787

88-
Warning: ftp_nb_continue(): No nbronous transfer to continue in %s005.php on line %d
88+
Warning: ftp_nb_continue(): No non-blocking transfer to continue in %s on line %d
8989
int(0)
9090
ftp_nb_fget(): Argument #4 ($mode) must be either FTP_ASCII or FTP_BINARY
9191
ftp_nb_fput(): Argument #4 ($mode) must be either FTP_ASCII or FTP_BINARY

0 commit comments

Comments
 (0)