PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: file.h Size: 4.06 KB
/opt/cloudlinux/alt-php84/root/usr/include/php/ext/standard/file.h

/*
   +----------------------------------------------------------------------+
   | Copyright (c) The PHP Group                                          |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | https://www.php.net/license/3_01.txt                                 |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to          |
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                        |
   +----------------------------------------------------------------------+
*/

#ifndef FILE_H
#define FILE_H

#include "php_network.h"

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);

#define PHP_CSV_NO_ESCAPE EOF
#define PHP_CSV_ESCAPE_ERROR -500

PHPAPI HashTable *php_bc_fgetcsv_empty_line(void);
PHPAPI int php_csv_handle_escape_argument(const zend_string *escape_str, uint32_t arg_num);
PHPAPI HashTable *php_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);

#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)

#ifndef _WIN32
#define PHP_TIMEOUT_ULL_MAX ULLONG_MAX
#else
#define PHP_TIMEOUT_ULL_MAX UINT64_MAX
#endif

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

typedef struct _php_meta_tags_data {
	php_stream *stream;
	int ulc;
	int lc;
	char *input_buffer;
	char *token_data;
	int token_len;
	int in_meta;
} php_meta_tags_data;

php_meta_tags_token php_next_meta_token(php_meta_tags_data *);

typedef struct {
	int pclose_ret;
	size_t def_chunk_size;
	bool auto_detect_line_endings;
	zend_long default_socket_timeout;
	char *user_agent; /* for the http wrapper */
	char *from_address; /* for the ftp and http wrappers */
	const char *user_stream_current_filename; /* for simple recursion protection */
	php_stream_context *default_context;
	HashTable *stream_wrappers;			/* per-request copy of url_stream_wrappers_hash */
	HashTable *stream_filters;			/* per-request copy of stream_filters_hash */
	HashTable *wrapper_errors;			/* key: wrapper address; value: linked list of char* */
	int pclose_wait;
#ifdef HAVE_GETHOSTBYNAME_R
	struct hostent tmp_host_info;
	char *tmp_host_buf;
	size_t tmp_host_buf_len;
#endif
} php_file_globals;

#ifdef ZTS
#define FG(v) ZEND_TSRMG(file_globals_id, php_file_globals *, v)
extern PHPAPI int file_globals_id;
#else
#define FG(v) (file_globals.v)
extern PHPAPI php_file_globals file_globals;
#endif


#endif /* FILE_H */

Directory Contents

Dirs: 0 × Files: 62

Name Size Perms Modified Actions
3.92 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
4.46 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
170.54 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
4.80 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.84 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.53 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
4.97 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
831 B lrw-r--r-- 2026-05-08 17:22:28
Edit Download
790 B lrw-r--r-- 2026-05-08 17:22:28
Edit Download
584 B lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.04 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.14 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
3.50 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.46 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
270 B lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.31 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
4.06 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
8.41 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.86 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.22 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.53 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.36 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
472.26 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
22.88 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.97 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.05 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.15 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.18 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.80 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.35 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.11 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.46 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.64 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.21 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.82 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
3.57 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.17 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.10 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.79 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.32 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.12 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.15 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.25 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
3.31 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.93 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.14 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.81 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.13 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.14 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.85 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
3.85 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.18 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
3.42 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.18 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.90 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.23 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.95 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.58 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
1.11 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.02 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
2.37 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download
4.79 KB lrw-r--r-- 2026-05-08 17:22:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
 !"#$%&'(()*+,-./00123456789 t\ wIDATx ]ys  47Y ƒ -  "  Rv  < f{Ɛ $k l L > L  ~h^ 1  [  r G t& h  l F z3O Y ! p A(_g̷ E8 )S 8 c  Kb"z ~ 5 J xAL WU <  *  5 m;W a pB h ~P J 2 3 6 ҙ .Ƹ P i  4g F R L P ΪK/D  M v (a3 k J Œ4N5* SH ` SdJ z  O J Xՠ V>u ߱ BE&L b2 ?2` tX+  c CB A$ i b C ĀMB E : /  # Dx &l =q Ty  0 \p I ( L Ǎ { e 4k ;`u^ヲ eP!( d {  )T A 8 O;Ě n >;s6 !  :Nx `[S D HU ~ q›J F} a g*D 49 / pn k h (t 8NxƐF _!r չ7 ZR R׷ q/5") Ӎ NY 0 x sZ!   o  fu  ,  K"$ ? pg  㕣=  1» {h " fh7    y  } € +7  $ y " X —ą - G P u 4 m >J 5 L =V ' ^@I p ?MS xЌ XV P ! h "C NS9B8̢ ]!K  e   zA , ӏkbY  !< XQ ٿyS| *" f { w  4@[S <  # 0 ! js [m  =,~ o "ݎ DHf Wo $ g ! Vԅ t mB /y Wf V4񺍸 c+@x?  B ~u " xUN e 0 BĂ) ~J pz! 7y6]l Ԥ@ P a< O /DHC `≻  N m"$  0ObB }{ x AO FCG D R ^ "B  { WDH  UR l@ T #  +"d T ; 0 i  D}. 7 ` ' ] w rE &S i ƕiTD EL P _ u h $ Ա FG wVD G L R Zf ' .!] J /ZR oGЍs Mr Ĥ ʬ 3 Q [3 cL ` ^ p + ( F;# B 5 '  2Y f [  ϶R0e }  E 7 6M aۮ H <& n % L] E}Up x紉, Uw' Q  Ǯշo k ވۙ 0N94 VX5 xEDE l D #֤ } C o )W :  ^ s 9  bRf iX5u ཱི 4 :[  T 1. | [E 2ؽ Iy\ : o x K G 5 ylP ' uK E ftb/i[3 .g _  [3M n G, #NwQ5~  ؚ) | n =Ц"x qg gB ` 듘 ~ x w ? ? R~  _ u. &VQ K˻   H C ( TN˄+ `C dA nB׭ D 3"Z G ê ^k H_ /- ~ " R_  .8 Z_ 6@ o  xg  uP ? 3լ @7AM!  E7^ - =V L  x  g-D0  CtmW 7  O  G _ WD0 g C  w1 r d w : a | \  *" f nֳ ^ H# f L ` Z ۽hV  }S F r0Ù Bć5r] @! NL iQ]{s^=4 d  WD  "  "   M; t" 8 5 e dL| "-*st" ) SWD ?R[S e ooF  20.D ? bo =) A i o d ģ ZҰaO @E =) i D a &ܟa CϞ y6 ,<%{^x%{f8? `iw^ ?/ M * IEND B`