Searched refs:opened_path (Results 1 - 25 of 54) sorted by relevance

123

/PHP_TRUNK/ext/sqlite3/tests/
H A Dstream_test.inc9 public function stream_open($path, $mode, $options, &$opened_path)
/PHP_TRUNK/Zend/
H A Dzend_stream.c134 handle->opened_path = NULL;
135 handle->handle.fp = zend_fopen(filename, &handle->opened_path);
324 if (fh->opened_path) {
325 zend_string_release(fh->opened_path);
326 fh->opened_path = NULL;
H A Dzend_stream.h72 zend_string *opened_path; member in struct:_zend_file_handle
H A Dzend_dtrace.c44 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
46 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
/PHP_TRUNK/ext/phar/
H A Ddirstream.h36 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);
H A Dstream.h27 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
H A Dstream.c158 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ argument
234 if (opened_path) {
235 *opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
252 if (opened_path) {
253 *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname);
278 if (opened_path) {
279 *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname);
335 if (opened_path) {
336 *opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
/PHP_TRUNK/ext/standard/
H A Dphp_fopen_wrappers.h26 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
27 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c114 zend_string **opened_path, php_stream_context *context STREAMS_DC)
133 innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context);
113 php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dphp_zlib.h68 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
/PHP_TRUNK/main/
H A Dfopen_wrappers.h51 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path);
H A Dphp_open_temporary_file.c100 char opened_path[MAXPATHLEN]; local
141 if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
148 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) {
151 if (VCWD_CHMOD(opened_path, 0600)) {
155 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600);
159 fd = mkstemp(opened_path);
161 if (mktemp(opened_path)) {
162 fd = VCWD_OPEN(opened_path, open_flags);
167 *opened_path_p = zend_string_init(opened_path, strlen(opened_path),
[all...]
H A Dfopen_wrappers.c333 static 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);
618 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) argument
626 if (opened_path) {
627 *opened_path = NULL;
645 return php_fopen_and_set_opened_path(filename, mode, opened_path);
685 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path);
H A Dphp_ini.c388 zend_string *opened_path = NULL; local
556 opened_path = zend_string_init(fh.filename, strlen(fh.filename), 0);
567 fh.handle.fp = php_fopen_with_path(ini_fname, "r", php_ini_search_path, &opened_path);
570 fh.filename = ZSTR_VAL(opened_path);
576 fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &opened_path);
578 fh.filename = ZSTR_VAL(opened_path);
600 if (opened_path) {
601 zend_string_release(opened_path);
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c210 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
222 if (opened_path) {
223 *opened_path = zend_string_init(path, strlen(path), 0);
209 php_glob_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dphp_stream_plain_wrapper.h30 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options STREAMS_DC);
33 PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path, int options STREAMS_DC);
48 PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, zend_string **opened_path STREAMS_DC);
49 #define php_stream_fopen_temporary_file(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx), (opened_path) STREAMS_CC)
54 PHPAPI FILE * _php_stream_open_wrapper_as_file(char * path, char * mode, int options, zend_string **opened_path STREAMS_DC);
55 #define php_stream_open_wrapper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_as_file((path), (mode), (options), (opened_path) STREAMS_CC)
H A Dcast.c345 PHPAPI FILE * _php_stream_open_wrapper_as_file(char *path, char *mode, int options, zend_string **opened_path STREAMS_DC)
350 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path);
358 if (opened_path && *opened_path) {
359 zend_string_release(*opened_path);
H A Dplain_wrapper.c202 zend_string *opened_path = NULL; local
205 fd = php_open_temporary_fd(dir, pfx, &opened_path);
210 *opened_path_ptr = opened_path;
217 stream->orig_path = estrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path));
219 self->temp_name = opened_path;
909 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
916 return php_glob_stream_wrapper.wops->dir_opener(&php_glob_stream_wrapper, path, mode, options, opened_path, context STREAMS_REL_CC);
947 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options STREAMS_DC) argument
975 if (opened_path) {
908 php_plain_files_dir_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
1043 php_plain_files_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
1407 _php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path, int options STREAMS_DC) argument
[all...]
/PHP_TRUNK/ext/bz2/
H A Dphp_bz2.h53 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
57 #define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper), (path), (mode), (options), (opened_path), NULL STREAMS_CC)
H A Dbz2.c241 zend_string **opened_path,
271 if (opened_path && bz_file) {
272 *opened_path = zend_string_init(path_copy, strlen(path_copy), 0);
281 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path);
293 if (opened_path && !bz_file && mode[0] == 'w') {
294 VCWD_UNLINK(ZSTR_VAL(*opened_path));
237 _php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c265 zend_string **opened_path,
324 if (opened_path) {
325 *opened_path = zend_string_init(path, strlen(path), 0);
261 php_stream_zip_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dphp_zip.h93 php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
/PHP_TRUNK/ext/dba/
H A Ddba.c638 zend_string *opened_path = NULL; local
858 info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path);
864 if (opened_path) {
865 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent);
866 zend_string_release(opened_path);
871 info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path);
876 info->path = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent);
879 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LE
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c703 if (!file_handle->opened_path) {
722 if (file_handle->opened_path && GetFileAttributesEx(file_handle->opened_path->val, GetFileExInfoStandard, &fdata) != 0) {
784 if (file_handle->opened_path) {
785 char *file_path = ZSTR_VAL(file_handle->opened_path);
848 if (file_handle->opened_path) {
849 if (persistent_script->full_path != file_handle->opened_path &&
850 (ZSTR_LEN(persistent_script->full_path) != ZSTR_LEN(file_handle->opened_path) ||
851 memcmp(ZSTR_VAL(persistent_script->full_path), ZSTR_VAL(file_handle->opened_path), ZSTR_LEN(file_handle->opened_path)) !
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_list.c238 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename);
259 fake.opened_path = file->opened_path;
261 fake.opened_path = file->opened_path;
288 fake.opened_path = NULL;
295 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename);

Completed in 61 milliseconds

123