Home
last modified time | relevance | path

Searched refs:opened_path (Results 1 – 25 of 86) sorted by relevance

1234

/PHP-7.2/main/
H A Dphp_open_temporary_file.c94 char *opened_path = NULL; in php_do_open_temporary_file() local
98 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file()
166 assert(strlen(opened_path) == opened_path_len); in php_do_open_temporary_file()
170 if (VCWD_CHMOD(opened_path, 0600)) { in php_do_open_temporary_file()
174 free(opened_path); in php_do_open_temporary_file()
177 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); in php_do_open_temporary_file()
183 fd = mkstemp(opened_path); in php_do_open_temporary_file()
185 if (mktemp(opened_path)) { in php_do_open_temporary_file()
186 fd = VCWD_OPEN(opened_path, open_flags); in php_do_open_temporary_file()
194 free(opened_path); in php_do_open_temporary_file()
[all …]
H A Dfopen_wrappers.c331 … FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, zend_string **opened_path) argument
339 if (fp && opened_path) {
343 *opened_path = zend_string_init(tmp, strlen(tmp), 0);
622 …open_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) argument
630 if (opened_path) {
631 *opened_path = NULL;
649 return php_fopen_and_set_opened_path(filename, mode, opened_path);
689 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path);
H A Dfopen_wrappers.h44 …pen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path);
/PHP-7.2/main/streams/
H A Dphp_stream_plain_wrapper.h30 …php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options ST…
33 …onst char *filename, const char *mode, const char *path, zend_string **opened_path, int options ST…
48 …tream_fopen_temporary_file(const char *dir, const char *pfx, zend_string **opened_path STREAMS_DC);
49 …p_stream_fopen_temporary_file(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx)… argument
54 …_open_wrapper_as_file(char * path, char * mode, int options, zend_string **opened_path STREAMS_DC);
55 …pper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_as_file((path), (mode), (o… argument
H A Dplain_wrapper.c210 zend_string *opened_path = NULL; in _php_stream_fopen_temporary_file() local
218 *opened_path_ptr = opened_path; in _php_stream_fopen_temporary_file()
225 stream->orig_path = estrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path)); in _php_stream_fopen_temporary_file()
227 self->temp_name = opened_path; in _php_stream_fopen_temporary_file()
1000 if (opened_path) { in _php_stream_fopen()
1025 if (opened_path) { in _php_stream_fopen()
1043 if (opened_path) { in _php_stream_fopen()
1044 zend_string_release(*opened_path); in _php_stream_fopen()
1045 *opened_path = NULL; in _php_stream_fopen()
1457 if (opened_path) { in _php_stream_fopen_with_path()
[all …]
H A Dcast.c345 …eam_open_wrapper_as_file(char *path, char *mode, int options, zend_string **opened_path STREAMS_DC) in _php_stream_open_wrapper_as_file()
350 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path); in _php_stream_open_wrapper_as_file()
358 if (opened_path && *opened_path) { in _php_stream_open_wrapper_as_file()
359 zend_string_release(*opened_path); in _php_stream_open_wrapper_as_file()
H A Dglob_wrapper.c210 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_glob_stream_opener() argument
218 if (opened_path) { in php_glob_stream_opener()
219 *opened_path = zend_string_init(path, strlen(path), 0); in php_glob_stream_opener()
/PHP-7.2/ext/bz2/
H A Dphp_bz2.h53 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
57 …open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper), (path), (mode), (op… argument
H A Dbz2.c245 zend_string **opened_path, in _php_stream_bz2open() argument
275 if (opened_path && bz_file) { in _php_stream_bz2open()
276 *opened_path = zend_string_init(path_copy, strlen(path_copy), 0); in _php_stream_bz2open()
285 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path); in _php_stream_bz2open()
297 if (opened_path && !bz_file && mode[0] == 'w') { in _php_stream_bz2open()
298 VCWD_UNLINK(ZSTR_VAL(*opened_path)); in _php_stream_bz2open()
/PHP-7.2/ext/standard/
H A Dphp_fopen_wrappers.h26 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
27 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
/PHP-7.2/Zend/
H A Dzend_dtrace.c49 DTRACE_COMPILE_FILE_ENTRY(ZSTR_VAL(file_handle->opened_path), (char *)file_handle->filename); in dtrace_compile_file()
51 DTRACE_COMPILE_FILE_RETURN(ZSTR_VAL(file_handle->opened_path), (char *)file_handle->filename); in dtrace_compile_file()
H A Dzend_stream.c134 handle->opened_path = NULL; in zend_stream_open()
135 handle->handle.fp = zend_fopen(filename, &handle->opened_path); in zend_stream_open()
315 if (fh->opened_path) { in zend_file_handle_dtor()
316 zend_string_release(fh->opened_path); in zend_file_handle_dtor()
317 fh->opened_path = NULL; in zend_file_handle_dtor()
/PHP-7.2/ext/standard/tests/streams/
H A Dstream_get_line_NUL_delimiter.phpt7 function stream_open($path, $mode, $options, &$opened_path) {
H A Dbug60455_02.phpt7 function stream_open($path, $mode, $options, &$opened_path) {
H A Dbug53903.phpt8 public function stream_open($path, $mode, $options, &$opened_path) {
H A Dbug60455_04.phpt8 function stream_open($path, $mode, $options, &$opened_path) {
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_list.c285 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_init_compile_file()
293 if (file->opened_path) { in phpdbg_init_compile_file()
294 zend_string_release(file->opened_path); in phpdbg_init_compile_file()
295 file->opened_path = zend_string_init(filename, strlen(filename), 0); in phpdbg_init_compile_file()
/PHP-7.2/ext/standard/tests/file/
H A Dbug71287.phpt6 public function stream_open($path, $mode, $options, $opened_path) {
/PHP-7.2/ext/dba/
H A Ddba.c651 zend_string *opened_path = NULL; in php_dba_open() local
896 …pen_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open()
902 if (opened_path) { in php_dba_open()
903 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
904 zend_string_release(opened_path); in php_dba_open()
909 …ck_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open()
914 info->path = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
917 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
918 zend_string_release(opened_path); in php_dba_open()
/PHP-7.2/ext/phar/
H A Ddirstream.h36 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
/PHP-7.2/ext/zlib/
H A Dzlib_fopen_wrapper.c114 zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_stream_gzopen() argument
133 …m_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context); in php_stream_gzopen()
H A Dphp_zlib.h69 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
/PHP-7.2/ext/spl/tests/
H A DSplFileObject_ftruncate_error_001.phpt11 function stream_open($path, $mode, $options, &$opened_path)
H A DSplFileObject_fflush_basic_001.phpt19 function stream_open($path, $mode, $options, &$opened_path)
/PHP-7.2/ext/sqlite3/tests/
H A Dstream_test.inc9 public function stream_open($path, $mode, $options, &$opened_path)

Completed in 46 milliseconds

1234