/PHP-7.0/main/streams/ |
H A D | php_stream_plain_wrapper.h | 30 …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 D | plain_wrapper.c | 208 zend_string *opened_path = NULL; in _php_stream_fopen_temporary_file() local 216 *opened_path_ptr = opened_path; in _php_stream_fopen_temporary_file() 223 stream->orig_path = estrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path)); in _php_stream_fopen_temporary_file() 225 self->temp_name = opened_path; in _php_stream_fopen_temporary_file() 997 if (opened_path) { in _php_stream_fopen() 1020 if (opened_path) { in _php_stream_fopen() 1038 if (opened_path) { in _php_stream_fopen() 1039 zend_string_release(*opened_path); in _php_stream_fopen() 1040 *opened_path = NULL; in _php_stream_fopen() 1439 if (opened_path) { in _php_stream_fopen_with_path() [all …]
|
H A D | cast.c | 345 …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 D | glob_wrapper.c | 210 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.0/main/ |
H A D | php_open_temporary_file.c | 100 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file() local 141 …if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPA… in php_do_open_temporary_file() 148 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) { in php_do_open_temporary_file() 151 if (VCWD_CHMOD(opened_path, 0600)) { in php_do_open_temporary_file() 155 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); in php_do_open_temporary_file() 159 fd = mkstemp(opened_path); in php_do_open_temporary_file() 161 if (mktemp(opened_path)) { in php_do_open_temporary_file() 162 fd = VCWD_OPEN(opened_path, open_flags); in php_do_open_temporary_file() 167 *opened_path_p = zend_string_init(opened_path, strlen(opened_path), 0); in php_do_open_temporary_file()
|
H A D | fopen_wrappers.c | 333 … FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, zend_string **opened_path) argument 341 if (fp && opened_path) { 345 *opened_path = zend_string_init(tmp, strlen(tmp), 0); 626 …open_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) argument 634 if (opened_path) { 635 *opened_path = NULL; 653 return php_fopen_and_set_opened_path(filename, mode, opened_path); 693 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path);
|
H A D | fopen_wrappers.h | 51 …pen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path);
|
/PHP-7.0/ext/bz2/ |
H A D | php_bz2.h | 53 …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 D | bz2.c | 245 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.0/ext/standard/ |
H A D | php_fopen_wrappers.h | 26 …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.0/sapi/phpdbg/ |
H A D | phpdbg_list.c | 246 filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_compile_file() 261 fake.opened_path = file->opened_path; in phpdbg_compile_file() 279 fake.opened_path = NULL; in phpdbg_compile_file() 289 fake.opened_path = NULL; in phpdbg_compile_file() 296 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_init_compile_file() 304 if (file->opened_path) { in phpdbg_init_compile_file() 305 zend_string_release(file->opened_path); in phpdbg_init_compile_file() 306 file->opened_path = zend_string_init(filename, strlen(filename), 0); in phpdbg_init_compile_file()
|
/PHP-7.0/Zend/ |
H A D | zend_dtrace.c | 49 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 D | zend_stream.c | 134 handle->opened_path = NULL; in zend_stream_open() 135 handle->handle.fp = zend_fopen(filename, &handle->opened_path); in zend_stream_open() 324 if (fh->opened_path) { 325 zend_string_release(fh->opened_path); 326 fh->opened_path = NULL;
|
/PHP-7.0/ext/standard/tests/streams/ |
H A D | stream_get_line_NUL_delimiter.phpt | 7 function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | bug60455_02.phpt | 7 function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | bug53903.phpt | 8 public function stream_open($path, $mode, $options, &$opened_path) {
|
H A D | bug60455_04.phpt | 8 function stream_open($path, $mode, $options, &$opened_path) {
|
/PHP-7.0/ext/dba/ |
H A D | dba.c | 645 zend_string *opened_path = NULL; in php_dba_open() local 861 …pen_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open() 867 if (opened_path) { in php_dba_open() 868 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open() 869 zend_string_release(opened_path); in php_dba_open() 874 …ck_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open() 879 info->path = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open() 882 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open() 883 zend_string_release(opened_path); in php_dba_open()
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | bug71287.phpt | 6 public function stream_open($path, $mode, $options, $opened_path) {
|
/PHP-7.0/ext/phar/ |
H A D | dirstream.h | 36 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
|
/PHP-7.0/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 114 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 D | php_zlib.h | 68 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
|
/PHP-7.0/ext/spl/tests/ |
H A D | SplFileObject_ftruncate_error_001.phpt | 11 function stream_open($path, $mode, $options, &$opened_path)
|
H A D | SplFileObject_fflush_basic_001.phpt | 19 function stream_open($path, $mode, $options, &$opened_path)
|
/PHP-7.0/ext/sqlite3/tests/ |
H A D | stream_test.inc | 9 public function stream_open($path, $mode, $options, &$opened_path)
|