Skip to content

Commit 5167e58

Browse files
Gerdriaan Mulderlangemeijer
authored andcommitted
Typofix (php_ssh2_fopen_wraper_parse_path -> php_ssh2_fopen_wrapper_parse_path)
1 parent c2ef717 commit 5167e58

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

php_ssh2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ PHP_FUNCTION(ssh2_sftp_realpath);
151151

152152
LIBSSH2_SESSION *php_ssh2_session_connect(char *host, int port, zval *methods, zval *callbacks);
153153
void php_ssh2_sftp_dtor(zend_resource *rsrc);
154-
php_url *php_ssh2_fopen_wraper_parse_path(const char *path, char *type, php_stream_context *context,
154+
php_url *php_ssh2_fopen_wrapper_parse_path(const char *path, char *type, php_stream_context *context,
155155
LIBSSH2_SESSION **psession, zend_resource **presource,
156156
LIBSSH2_SFTP **psftp, zend_resource **psftp_rsrc);
157157

ssh2_fopen_wrappers.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ php_stream_ops php_ssh2_channel_stream_ops = {
230230
* Magic Path Helper *
231231
********************* */
232232

233-
/* {{{ php_ssh2_fopen_wraper_parse_path
233+
/* {{{ php_ssh2_fopen_wrapper_parse_path
234234
* Parse an ssh2.*:// path
235235
*/
236-
php_url *php_ssh2_fopen_wraper_parse_path(const char *path, char *type, php_stream_context *context,
236+
php_url *php_ssh2_fopen_wrapper_parse_path(const char *path, char *type, php_stream_context *context,
237237
LIBSSH2_SESSION **psession, zend_resource **presource,
238238
LIBSSH2_SFTP **psftp, zend_resource **psftp_rsrc)
239239
{
@@ -627,7 +627,7 @@ static php_stream *php_ssh2_fopen_wrapper_shell(php_stream_wrapper *wrapper, con
627627
php_url *resource;
628628
char *s;
629629

630-
resource = php_ssh2_fopen_wraper_parse_path(path, "shell", context, &session, &rsrc, NULL, NULL);
630+
resource = php_ssh2_fopen_wrapper_parse_path(path, "shell", context, &session, &rsrc, NULL, NULL);
631631
if (!resource || !session) {
632632
return NULL;
633633
}
@@ -897,7 +897,7 @@ static php_stream *php_ssh2_fopen_wrapper_exec(php_stream_wrapper *wrapper, cons
897897
long height = PHP_SSH2_DEFAULT_TERM_HEIGHT;
898898
long type = PHP_SSH2_DEFAULT_TERM_UNIT;
899899

900-
resource = php_ssh2_fopen_wraper_parse_path(path, "exec", context, &session, &rsrc, NULL, NULL);
900+
resource = php_ssh2_fopen_wrapper_parse_path(path, "exec", context, &session, &rsrc, NULL, NULL);
901901
if (!resource || !session) {
902902
return NULL;
903903
}
@@ -1076,7 +1076,7 @@ static php_stream *php_ssh2_fopen_wrapper_scp(php_stream_wrapper *wrapper, const
10761076
return NULL;
10771077
}
10781078

1079-
resource = php_ssh2_fopen_wraper_parse_path(path, "scp", context, &session, &rsrc, NULL, NULL);
1079+
resource = php_ssh2_fopen_wrapper_parse_path(path, "scp", context, &session, &rsrc, NULL, NULL);
10801080
if (!resource || !session) {
10811081
return NULL;
10821082
}
@@ -1333,7 +1333,7 @@ static php_stream *php_ssh2_fopen_wrapper_tunnel(php_stream_wrapper *wrapper, co
13331333
int port = 0;
13341334
zend_resource *rsrc;
13351335

1336-
resource = php_ssh2_fopen_wraper_parse_path(path, "tunnel", context, &session, &rsrc, NULL, NULL);
1336+
resource = php_ssh2_fopen_wrapper_parse_path(path, "tunnel", context, &session, &rsrc, NULL, NULL);
13371337
if (!resource || !session) {
13381338
return NULL;
13391339
}

ssh2_sftp.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static php_stream *php_ssh2_sftp_stream_opener(php_stream_wrapper *wrapper, cons
247247
unsigned long flags;
248248
long perms = 0644;
249249

250-
resource = php_ssh2_fopen_wraper_parse_path(filename, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
250+
resource = php_ssh2_fopen_wrapper_parse_path(filename, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
251251
if (!resource || !session || !sftp || !sftp_rsrc) {
252252
return NULL;
253253
}
@@ -353,7 +353,7 @@ static php_stream *php_ssh2_sftp_dirstream_opener(php_stream_wrapper *wrapper, c
353353
zend_resource *rsrc = NULL, *sftp_rsrc = NULL;
354354
php_url *resource;
355355

356-
resource = php_ssh2_fopen_wraper_parse_path(filename, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
356+
resource = php_ssh2_fopen_wrapper_parse_path(filename, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
357357
if (!resource || !session || !sftp) {
358358
return NULL;
359359
}
@@ -396,7 +396,7 @@ static int php_ssh2_sftp_urlstat(php_stream_wrapper *wrapper, const char *url, i
396396
zend_resource *rsrc = NULL, *sftp_rsrc = NULL;
397397
php_url *resource;
398398

399-
resource = php_ssh2_fopen_wraper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
399+
resource = php_ssh2_fopen_wrapper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
400400
if (!resource || !session || !sftp || !resource->path) {
401401
return -1;
402402
}
@@ -427,7 +427,7 @@ static int php_ssh2_sftp_unlink(php_stream_wrapper *wrapper, const char *url, in
427427
php_url *resource;
428428
int result;
429429

430-
resource = php_ssh2_fopen_wraper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
430+
resource = php_ssh2_fopen_wrapper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
431431
if (!resource || !session || !sftp || !resource->path) {
432432
if (resource) {
433433
php_url_free(resource);
@@ -468,7 +468,7 @@ static int php_ssh2_sftp_rename(php_stream_wrapper *wrapper, const char *url_fro
468468
return 0;
469469
}
470470

471-
resource = php_ssh2_fopen_wraper_parse_path(url_from, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
471+
resource = php_ssh2_fopen_wrapper_parse_path(url_from, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
472472
if (!resource || !session || !sftp || !resource->path) {
473473
if (resource) {
474474
php_url_free(resource);
@@ -498,7 +498,7 @@ static int php_ssh2_sftp_mkdir(php_stream_wrapper *wrapper, const char *url, int
498498
php_url *resource;
499499
int result;
500500

501-
resource = php_ssh2_fopen_wraper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
501+
resource = php_ssh2_fopen_wrapper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
502502
if (!resource || !session || !sftp || !resource->path) {
503503
if (resource) {
504504
php_url_free(resource);
@@ -534,7 +534,7 @@ static int php_ssh2_sftp_rmdir(php_stream_wrapper *wrapper, const char *url, int
534534
php_url *resource;
535535
int result;
536536

537-
resource = php_ssh2_fopen_wraper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
537+
resource = php_ssh2_fopen_wrapper_parse_path(url, "sftp", context, &session, &rsrc, &sftp, &sftp_rsrc);
538538
if (!resource || !session || !sftp || !resource->path) {
539539
if (resource) {
540540
php_url_free(resource);

0 commit comments

Comments
 (0)