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_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);
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_language_scanner.l273 file_handle->opened_path = NULL;
537 if (file_handle->opened_path) {
538 compiled_filename = zend_string_copy(file_handle->opened_path);
620 zend_string *opened_path = NULL;
631 file_handle.opened_path = NULL;
636 if (!file_handle.opened_path) {
637 file_handle.opened_path = opened_path = zend_string_copy(Z_STR_P(filename));
640 zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path);
642 if (opened_path) {
[all...]
/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
233 if (opened_path) {
234 *opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
251 if (opened_path) {
252 *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname);
277 if (opened_path) {
278 *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname);
334 if (opened_path) {
335 *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/zip/
H A Dzip_stream.c257 zend_string **opened_path,
316 if (opened_path) {
317 *opened_path = zend_string_init(path, strlen(path), 0);
253 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/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.h64 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_ini.c392 zend_string *opened_path = NULL; local
560 opened_path = zend_string_init(fh.filename, strlen(fh.filename), 0);
571 fh.handle.fp = php_fopen_with_path(ini_fname, "r", php_ini_search_path, &opened_path);
574 fh.filename = opened_path->val;
580 fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &opened_path);
582 fh.filename = opened_path->val;
604 if (opened_path) {
605 zend_string_release(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.c337 static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, zend_string **opened_path) argument
345 if (fp && opened_path) {
349 *opened_path = zend_string_init(tmp, strlen(tmp), 0);
622 PHPAPI FILE *php_fopen_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);
/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 Dplain_wrapper.c195 zend_string *opened_path = NULL; local
198 fd = php_open_temporary_fd(dir, pfx, &opened_path);
203 *opened_path_ptr = opened_path;
210 stream->orig_path = estrndup(opened_path->val, opened_path->len);
212 self->temp_name = opened_path;
893 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
900 return php_glob_stream_wrapper.wops->dir_opener(&php_glob_stream_wrapper, path, mode, options, opened_path, context STREAMS_REL_CC);
931 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options STREAMS_DC) argument
959 if (opened_path) {
892 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
1022 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
1386 _php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path, int options STREAMS_DC) argument
[all...]
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);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_list.c238 char *filename = (char *)(file->opened_path ? file->opened_path->val : file->filename);
263 fake.opened_path = file->opened_path;
265 fake.opened_path = file->opened_path;
286 fake.opened_path = NULL;
/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((*opened_path)->val);
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/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(opened_path->val, opened_path->len, 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(opened_path->val, opened_path->len, persistent);
879 info->lock.name = pestrndup(opened_path
[all...]

Completed in 39 milliseconds

123