php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
file.h File Reference
#include "php_network.h"

Go to the source code of this file.

Data Structures

struct  _php_meta_tags_data
 
struct  php_file_globals
 

Macros

#define PHP_CSV_NO_ESCAPE   EOF
 
#define PHP_CSV_ESCAPE_ERROR   -500
 
#define META_DEF_BUFSIZE   8192
 
#define PHP_FILE_USE_INCLUDE_PATH   (1 << 0)
 
#define PHP_FILE_IGNORE_NEW_LINES   (1 << 1)
 
#define PHP_FILE_SKIP_EMPTY_LINES   (1 << 2)
 
#define PHP_FILE_APPEND   (1 << 3)
 
#define PHP_FILE_NO_DEFAULT_CONTEXT   (1 << 4)
 
#define PHP_TIMEOUT_ULL_MAX   ULLONG_MAX
 
#define FG(v)
 

Typedefs

typedef enum _php_meta_tags_token php_meta_tags_token
 
typedef struct _php_meta_tags_data php_meta_tags_data
 

Enumerations

enum  _php_meta_tags_token {
  TOK_EOF = 0 , TOK_OPENTAG , TOK_CLOSETAG , TOK_SLASH ,
  TOK_EQUAL , TOK_SPACE , TOK_ID , TOK_STRING ,
  TOK_OTHER
}
 

Functions

 PHP_MINIT_FUNCTION (file)
 
 PHP_MSHUTDOWN_FUNCTION (file)
 
PHPAPI PHP_FUNCTION (fclose)
 
PHPAPI PHP_FUNCTION (feof)
 
PHPAPI PHP_FUNCTION (fread)
 
PHPAPI PHP_FUNCTION (fgetc)
 
PHPAPI PHP_FUNCTION (fgets)
 
PHPAPI PHP_FUNCTION (fwrite)
 
PHPAPI PHP_FUNCTION (fflush)
 
PHPAPI PHP_FUNCTION (rewind)
 
PHPAPI PHP_FUNCTION (ftell)
 
PHPAPI PHP_FUNCTION (fseek)
 
PHPAPI PHP_FUNCTION (fpassthru)
 
 PHP_MINIT_FUNCTION (user_streams)
 
PHPAPI int php_le_stream_context (void)
 
PHPAPI zend_result php_copy_file (const char *src, const char *dest)
 
PHPAPI zend_result php_copy_file_ex (const char *src, const char *dest, int src_flags)
 
PHPAPI zend_result php_copy_file_ctx (const char *src, const char *dest, int src_flags, php_stream_context *ctx)
 
PHPAPI void php_fstat (php_stream *stream, zval *return_value)
 
PHPAPI void php_flock_common (php_stream *stream, zend_long operation, uint32_t operation_arg_num, zval *wouldblock, zval *return_value)
 
PHPAPI HashTablephp_bc_fgetcsv_empty_line (void)
 
PHPAPI int php_csv_handle_escape_argument (const zend_string *escape_str, uint32_t arg_num)
 
PHPAPI HashTablephp_fgetcsv (php_stream *stream, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf)
 
PHPAPI ssize_t php_fputcsv (php_stream *stream, zval *fields, char delimiter, char enclosure, int escape_char, zend_string *eol_str)
 
php_meta_tags_token php_next_meta_token (php_meta_tags_data *)
 

Variables

PHPAPI php_file_globals file_globals
 

Macro Definition Documentation

◆ FG

#define FG ( v)
Value:
php_file_globals file_globals
Definition file.c:91

Definition at line 117 of file file.h.

◆ META_DEF_BUFSIZE

#define META_DEF_BUFSIZE   8192

Definition at line 55 of file file.h.

◆ PHP_CSV_ESCAPE_ERROR

#define PHP_CSV_ESCAPE_ERROR   -500

Definition at line 48 of file file.h.

◆ PHP_CSV_NO_ESCAPE

#define PHP_CSV_NO_ESCAPE   EOF

Definition at line 47 of file file.h.

◆ PHP_FILE_APPEND

#define PHP_FILE_APPEND   (1 << 3)

Definition at line 60 of file file.h.

◆ PHP_FILE_IGNORE_NEW_LINES

#define PHP_FILE_IGNORE_NEW_LINES   (1 << 1)

Definition at line 58 of file file.h.

◆ PHP_FILE_NO_DEFAULT_CONTEXT

#define PHP_FILE_NO_DEFAULT_CONTEXT   (1 << 4)

Definition at line 61 of file file.h.

◆ PHP_FILE_SKIP_EMPTY_LINES

#define PHP_FILE_SKIP_EMPTY_LINES   (1 << 2)

Definition at line 59 of file file.h.

◆ PHP_FILE_USE_INCLUDE_PATH

#define PHP_FILE_USE_INCLUDE_PATH   (1 << 0)

Definition at line 57 of file file.h.

◆ PHP_TIMEOUT_ULL_MAX

#define PHP_TIMEOUT_ULL_MAX   ULLONG_MAX

Definition at line 64 of file file.h.

Typedef Documentation

◆ php_meta_tags_data

◆ php_meta_tags_token

Enumeration Type Documentation

◆ _php_meta_tags_token

Enumerator
TOK_EOF 
TOK_OPENTAG 
TOK_CLOSETAG 
TOK_SLASH 
TOK_EQUAL 
TOK_SPACE 
TOK_ID 
TOK_STRING 
TOK_OTHER 

Definition at line 69 of file file.h.

Function Documentation

◆ php_bc_fgetcsv_empty_line()

PHPAPI HashTable * php_bc_fgetcsv_empty_line ( void )

Definition at line 1886 of file file.c.

◆ php_copy_file()

PHPAPI zend_result php_copy_file ( const char * src,
const char * dest )

Definition at line 1483 of file file.c.

◆ php_copy_file_ctx()

PHPAPI zend_result php_copy_file_ctx ( const char * src,
const char * dest,
int src_flags,
php_stream_context * ctx )

Definition at line 1497 of file file.c.

◆ php_copy_file_ex()

PHPAPI zend_result php_copy_file_ex ( const char * src,
const char * dest,
int src_flags )

Definition at line 1490 of file file.c.

◆ php_csv_handle_escape_argument()

PHPAPI int php_csv_handle_escape_argument ( const zend_string * escape_str,
uint32_t arg_num )

Definition at line 1656 of file file.c.

◆ php_fgetcsv()

PHPAPI HashTable * php_fgetcsv ( php_stream * stream,
char delimiter,
char enclosure,
int escape_char,
size_t buf_len,
char * buf )

Definition at line 1895 of file file.c.

◆ php_flock_common()

PHPAPI void php_flock_common ( php_stream * stream,
zend_long operation,
uint32_t operation_arg_num,
zval * wouldblock,
zval * return_value )

Definition at line 188 of file file.c.

◆ php_fputcsv()

PHPAPI ssize_t php_fputcsv ( php_stream * stream,
zval * fields,
char delimiter,
char enclosure,
int escape_char,
zend_string * eol_str )

Definition at line 1739 of file file.c.

◆ php_fstat()

PHPAPI void php_fstat ( php_stream * stream,
zval * return_value )

Definition at line 1369 of file file.c.

◆ PHP_FUNCTION() [1/11]

PHPAPI PHP_FUNCTION ( fclose )

Definition at line 757 of file file.c.

◆ PHP_FUNCTION() [2/11]

PHPAPI PHP_FUNCTION ( feof )

Definition at line 856 of file file.c.

◆ PHP_FUNCTION() [3/11]

PHPAPI PHP_FUNCTION ( fflush )

Definition at line 1032 of file file.c.

◆ PHP_FUNCTION() [4/11]

PHPAPI PHP_FUNCTION ( fgetc )

Definition at line 927 of file file.c.

◆ PHP_FUNCTION() [5/11]

PHPAPI PHP_FUNCTION ( fgets )

Definition at line 876 of file file.c.

◆ PHP_FUNCTION() [6/11]

PHPAPI PHP_FUNCTION ( fpassthru )

Definition at line 1216 of file file.c.

◆ PHP_FUNCTION() [7/11]

PHPAPI PHP_FUNCTION ( fread )

Definition at line 1589 of file file.c.

◆ PHP_FUNCTION() [8/11]

PHPAPI PHP_FUNCTION ( fseek )

Definition at line 1093 of file file.c.

◆ PHP_FUNCTION() [9/11]

PHPAPI PHP_FUNCTION ( ftell )

Definition at line 1072 of file file.c.

◆ PHP_FUNCTION() [10/11]

PHPAPI PHP_FUNCTION ( fwrite )

Definition at line 990 of file file.c.

◆ PHP_FUNCTION() [11/11]

PHPAPI PHP_FUNCTION ( rewind )

Definition at line 1053 of file file.c.

◆ php_le_stream_context()

PHPAPI int php_le_stream_context ( void )

Definition at line 114 of file file.c.

◆ PHP_MINIT_FUNCTION() [1/2]

PHP_MINIT_FUNCTION ( file )

Definition at line 161 of file file.c.

◆ PHP_MINIT_FUNCTION() [2/2]

PHP_MINIT_FUNCTION ( user_streams )

Definition at line 80 of file userspace.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( file )

◆ php_next_meta_token()

php_meta_tags_token php_next_meta_token ( php_meta_tags_data * md)

Definition at line 2195 of file file.c.

Variable Documentation

◆ file_globals

PHPAPI php_file_globals file_globals
extern

Definition at line 91 of file file.c.