/PHP-8.3/main/ |
H A D | php_open_temporary_file.c | 90 char *opened_path = NULL; in php_do_open_temporary_file() local 94 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file() 162 assert(strlen(opened_path) == opened_path_len); in php_do_open_temporary_file() 166 if (VCWD_CHMOD(opened_path, 0600)) { in php_do_open_temporary_file() 170 free(opened_path); in php_do_open_temporary_file() 173 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); in php_do_open_temporary_file() 179 fd = mkstemp(opened_path); in php_do_open_temporary_file() 181 if (mktemp(opened_path)) { in php_do_open_temporary_file() 182 fd = VCWD_OPEN(opened_path, open_flags); in php_do_open_temporary_file() 190 free(opened_path); in php_do_open_temporary_file() [all …]
|
H A D | fopen_wrappers.h | 40 …pen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path);
|
H A D | fopen_wrappers.c | 339 … FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, zend_string **opened_path) argument 347 if (fp && opened_path) { 351 *opened_path = zend_string_init(tmp, strlen(tmp), 0); 647 …open_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) argument 655 if (opened_path) { 656 *opened_path = NULL; 674 return php_fopen_and_set_opened_path(filename, mode, opened_path); 714 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path);
|
/PHP-8.3/main/streams/ |
H A D | php_stream_plain_wrapper.h | 26 …php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options ST… 29 …onst char *filename, const char *mode, const char *path, zend_string **opened_path, int options ST… 44 …tream_fopen_temporary_file(const char *dir, const char *pfx, zend_string **opened_path STREAMS_DC); 45 …p_stream_fopen_temporary_file(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx)… argument 50 …_open_wrapper_as_file(char * path, char * mode, int options, zend_string **opened_path STREAMS_DC); 51 …pper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_as_file((path), (mode), (o… argument
|
H A D | plain_wrapper.c | 219 zend_string *opened_path = NULL; in _php_stream_fopen_temporary_file() local 227 *opened_path_ptr = opened_path; in _php_stream_fopen_temporary_file() 234 stream->orig_path = estrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path)); in _php_stream_fopen_temporary_file() 236 self->temp_name = opened_path; in _php_stream_fopen_temporary_file() 1128 if (opened_path) { in _php_stream_fopen() 1158 if (opened_path) { in _php_stream_fopen() 1176 if (opened_path) { in _php_stream_fopen() 1177 zend_string_release_ex(*opened_path, 0); in _php_stream_fopen() 1178 *opened_path = NULL; in _php_stream_fopen() 1604 if (opened_path) { in _php_stream_fopen_with_path() [all …]
|
H A D | cast.c | 350 …eam_open_wrapper_as_file(char *path, char *mode, int options, zend_string **opened_path STREAMS_DC) in _php_stream_open_wrapper_as_file() 355 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path); in _php_stream_open_wrapper_as_file() 363 if (opened_path && *opened_path) { in _php_stream_open_wrapper_as_file() 364 zend_string_release_ex(*opened_path, 0); in _php_stream_open_wrapper_as_file()
|
H A D | glob_wrapper.c | 216 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_glob_stream_opener() argument 224 if (opened_path) { in php_glob_stream_opener() 225 *opened_path = zend_string_init(path, strlen(path), 0); in php_glob_stream_opener()
|
/PHP-8.3/ext/bz2/ |
H A D | php_bz2.h | 49 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… 53 …open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper), (path), (mode), (op… argument
|
H A D | bz2.c | 182 zend_string **opened_path, in _php_stream_bz2open() argument 212 if (opened_path && bz_file) { in _php_stream_bz2open() 213 *opened_path = zend_string_init(path_copy, strlen(path_copy), 0); in _php_stream_bz2open() 222 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path); in _php_stream_bz2open() 234 if (opened_path && !bz_file && mode[0] == 'w') { in _php_stream_bz2open() 235 VCWD_UNLINK(ZSTR_VAL(*opened_path)); in _php_stream_bz2open()
|
/PHP-8.3/ext/standard/ |
H A D | php_fopen_wrappers.h | 22 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… 23 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
|
/PHP-8.3/Zend/ |
H A D | zend_stream.c | 84 zend_string *opened_path; in zend_stream_open() local 91 handle->handle.fp = zend_fopen(handle->filename, &opened_path); in zend_stream_open() 234 if (fh->opened_path) { in zend_file_handle_dtor() 235 zend_string_release_ex(fh->opened_path, 0); in zend_file_handle_dtor() 236 fh->opened_path = NULL; in zend_file_handle_dtor() 273 file_handle->opened_path = NULL; in zend_destroy_file_handle()
|
H A D | zend_dtrace.c | 47 DTRACE_COMPILE_FILE_ENTRY(ZSTR_VAL(file_handle->opened_path), ZSTR_VAL(file_handle->filename)); in dtrace_compile_file() 49 DTRACE_COMPILE_FILE_RETURN(ZSTR_VAL(file_handle->opened_path), ZSTR_VAL(file_handle->filename)); in dtrace_compile_file()
|
/PHP-8.3/Zend/tests/ |
H A D | gh11735_1.phpt | 7 public function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | gh11735_2.phpt | 7 public function stream_open($path, $mode, $options, &$opened_path) {
|
/PHP-8.3/ext/standard/tests/streams/ |
H A D | stream_get_line_NUL_delimiter.phpt | 8 function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | bug78662.phpt | 7 function stream_open($path, $mode, $options, &$opened_path)
|
H A D | bug53903.phpt | 9 public function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | bug60455_02.phpt | 8 function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | bug60455_04.phpt | 9 function stream_open($path, $mode, $options, &$opened_path) {
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg_list.c | 278 zend_string *filename = file->opened_path ? file->opened_path : file->filename; in phpdbg_init_compile_file() 286 if (file->opened_path) { in phpdbg_init_compile_file() 287 zend_string_release(file->opened_path); in phpdbg_init_compile_file() 288 file->opened_path = filename; in phpdbg_init_compile_file()
|
/PHP-8.3/ext/standard/tests/file/ |
H A D | bug71287.phpt | 8 public function stream_open($path, $mode, $options, $opened_path) {
|
/PHP-8.3/ext/phar/ |
H A D | dirstream.h | 34 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
|
/PHP-8.3/ext/dba/ |
H A D | dba.c | 772 zend_string *opened_path = NULL; in php_dba_open() local 776 …pen_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open() 777 if (opened_path) { in php_dba_open() 778 zend_string_release_ex(opened_path, 0); in php_dba_open() 787 zend_string *opened_path = NULL; in php_dba_open() local 788 …ck_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open() 791 if (opened_path) { in php_dba_open() 794 info->path = php_dba_zend_string_dup_safe(opened_path, persistent); in php_dba_open() 800 if (opened_path) { in php_dba_open() 801 zend_string_release_ex(opened_path, 0); in php_dba_open()
|
/PHP-8.3/ext/spl/tests/SplFileObject/ |
H A D | SplFileObject_ftruncate_error_001.phpt | 12 function stream_open($path, $mode, $options, &$opened_path)
|
/PHP-8.3/ext/libxml/tests/ |
H A D | bug54440.phpt | 10 function stream_open($path, $mode, $options, &$opened_path)
|