diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 4b9186105819b..d7acb3edef68e 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -815,7 +815,7 @@ PHP_FUNCTION(ftp_nb_get) } /* }}} */ -/* {{{ Continues retrieving/sending a file nbronously */ +/* {{{ Continues to retrieve or send a file in non-blocking mode */ PHP_FUNCTION(ftp_nb_continue) { zval *z_ftp; @@ -828,7 +828,7 @@ PHP_FUNCTION(ftp_nb_continue) GET_FTPBUF(ftp, z_ftp); if (!ftp->nb) { - php_error_docref(NULL, E_WARNING, "No nbronous transfer to continue"); + php_error_docref(NULL, E_WARNING, "No non-blocking transfer to continue"); RETURN_LONG(PHP_FTP_FAILED); } diff --git a/ext/ftp/tests/005.phpt b/ext/ftp/tests/005.phpt index 409b60e184715..f08cadd2b4280 100644 --- a/ext/ftp/tests/005.phpt +++ b/ext/ftp/tests/005.phpt @@ -85,7 +85,7 @@ int(-1) Warning: ftp_mkdir(): Command not implemented (7). in %s005.php on line %d bool(false) -Warning: ftp_nb_continue(): No nbronous transfer to continue in %s005.php on line %d +Warning: ftp_nb_continue(): No non-blocking transfer to continue in %s on line %d int(0) ftp_nb_fget(): Argument #4 ($mode) must be either FTP_ASCII or FTP_BINARY ftp_nb_fput(): Argument #4 ($mode) must be either FTP_ASCII or FTP_BINARY diff --git a/main/streams/userspace.c b/main/streams/userspace.c index b1ea8818aeccd..f5e25aa96c772 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -37,7 +37,6 @@ static int le_protocols; struct php_user_stream_wrapper { php_stream_wrapper wrapper; - char * protoname; zend_class_entry *ce; zend_resource *resource; }; @@ -72,7 +71,6 @@ static void stream_wrapper_dtor(zend_resource *rsrc) { struct php_user_stream_wrapper * uwrap = (struct php_user_stream_wrapper*)rsrc->ptr; - efree(uwrap->protoname); efree(uwrap); } @@ -468,7 +466,6 @@ PHP_FUNCTION(stream_wrapper_register) uwrap = (struct php_user_stream_wrapper *)ecalloc(1, sizeof(*uwrap)); uwrap->ce = ce; - uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); uwrap->wrapper.wops = &user_stream_wops; uwrap->wrapper.abstract = uwrap; uwrap->wrapper.is_url = ((flags & PHP_STREAM_IS_URL) != 0);