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

Go to the source code of this file.

Macros

#define PHAR_DIRSTREAM   1
 

Functions

void phar_dostat (phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, bool is_dir)
 
php_streamphar_wrapper_open_dir (php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
 
int phar_wrapper_mkdir (php_stream_wrapper *wrapper, const char *url_from, int mode, int options, php_stream_context *context)
 
int phar_wrapper_rmdir (php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context)
 

Macro Definition Documentation

◆ PHAR_DIRSTREAM

#define PHAR_DIRSTREAM   1

Definition at line 20 of file dirstream.c.

Function Documentation

◆ phar_dostat()

void phar_dostat ( phar_archive_data * phar,
phar_entry_info * data,
php_stream_statbuf * ssb,
bool is_temp_dir )

stat an opened phar file handle stream, used by phar_stat()

Definition at line 492 of file stream.c.

◆ phar_wrapper_mkdir()

int phar_wrapper_mkdir ( php_stream_wrapper * wrapper,
const char * url_from,
int mode,
int options,
php_stream_context * context )

Make a new directory within a phar archive

Definition at line 396 of file dirstream.c.

◆ phar_wrapper_open_dir()

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

Open a directory handle within a phar archive

Definition at line 289 of file dirstream.c.

◆ phar_wrapper_rmdir()

int phar_wrapper_rmdir ( php_stream_wrapper * wrapper,
const char * url,
int options,
php_stream_context * context )

Remove a directory within a phar archive

Definition at line 527 of file dirstream.c.