php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ftp_fopen_wrapper.c File Reference
#include "php.h"
#include "php_globals.h"
#include "php_network.h"
#include "php_ini.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/param.h>
#include "php_standard.h"
#include <netinet/in.h>
#include <netdb.h>
#include "php_fopen_wrappers.h"

Go to the source code of this file.

Data Structures

struct  _php_ftp_dirstream_data
 

Macros

#define FTPS_ENCRYPT_DATA   1
 
#define GET_FTP_RESULT(stream)
 
#define PHP_FTP_CNTRL_CHK(val, val_len, err_msg)
 

Typedefs

typedef struct _php_ftp_dirstream_data php_ftp_dirstream_data
 

Functions

php_streamphp_stream_url_wrap_ftp (php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
 

Variables

PHPAPI const php_stream_wrapper php_stream_ftp_wrapper
 

Macro Definition Documentation

◆ FTPS_ENCRYPT_DATA

#define FTPS_ENCRYPT_DATA   1

Definition at line 67 of file ftp_fopen_wrapper.c.

◆ GET_FTP_RESULT

#define GET_FTP_RESULT ( stream)
Value:
get_ftp_result((stream), tmp_line, sizeof(tmp_line))

Definition at line 68 of file ftp_fopen_wrapper.c.

◆ PHP_FTP_CNTRL_CHK

#define PHP_FTP_CNTRL_CHK ( val,
val_len,
err_msg )
Value:
{ \
unsigned char *s = (unsigned char *) val, *e = (unsigned char *) s + val_len; \
while (s < e) { \
if (iscntrl(*s)) { \
php_stream_wrapper_log_error(wrapper, options, err_msg, val); \
goto connect_errexit; \
} \
s++; \
} \
}
char s[4]
Definition cdf.c:77
zval * val
Definition ffi.c:4262
PHP_JSON_API size_t int options
Definition php_json.h:102

Typedef Documentation

◆ php_ftp_dirstream_data

Function Documentation

◆ php_stream_url_wrap_ftp()

php_stream * php_stream_url_wrap_ftp ( php_stream_wrapper * wrapper,
const char * path,
const char * mode,
int options,
zend_string ** opened_path,
php_stream_context *context STREAMS_DC )

Definition at line 403 of file ftp_fopen_wrapper.c.

Variable Documentation

◆ php_stream_ftp_wrapper

PHPAPI const php_stream_wrapper php_stream_ftp_wrapper
Initial value:
= {
&ftp_stream_wops,
1
}
#define NULL
Definition gdcache.h:45

Definition at line 1176 of file ftp_fopen_wrapper.c.