Searched defs:opened_path (Results 1 - 22 of 22) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend.c51 ZEND_API FILE *(*zend_fopen)(const char *filename, char **opened_path);
349 static FILE *zend_fopen_wrapper(const char *filename, char **opened_path) /* {{{ */ argument
351 if (opened_path) {
352 *opened_path = estrdup(filename);
1263 if (file_handle->opened_path) {
1264 zend_hash_str_add_empty_element(&EG(included_files), file_handle->opened_path, strlen(file_handle->opened_path));
H A Dzend_stream.h72 char *opened_path; member in struct:_zend_file_handle
H A Dzend_language_scanner.c269 file_handle->opened_path = NULL;
534 if (file_handle->opened_path) {
535 file_path = file_handle->opened_path;
619 char *opened_path = NULL; local
630 file_handle.opened_path = NULL;
635 if (!file_handle.opened_path) {
636 file_handle.opened_path = opened_path = estrndup(Z_STRVAL_P(filename), Z_STRLEN_P(filename));
639 zend_hash_str_add_empty_element(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path));
[all...]
/PHP_TRUNK/ext/bz2/
H A Dbz2.c238 char **opened_path,
268 if (opened_path && bz_file) {
270 *opened_path = path_copy;
273 *opened_path = estrdup(path_copy);
286 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path);
298 if (opened_path && !bz_file && mode[0] == 'w') {
299 VCWD_UNLINK(*opened_path);
234 _php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
/PHP_TRUNK/ext/dba/
H A Ddba.c628 char *opened_path = NULL; local
848 info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path);
855 info->lock.name = opened_path;
857 if (opened_path) {
858 info->lock.name = pestrdup(opened_path, persistent);
859 efree(opened_path);
865 info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path);
870 info->path = pestrdup(opened_path, persistent);
874 info->lock.name = opened_path;
876 info->lock.name = pestrdup(opened_path, persisten
[all...]
/PHP_TRUNK/ext/phar/
H A Ddirstream.c303 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ argument
H A Dstream.c158 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ argument
233 if (opened_path) {
234 spprintf(opened_path, MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
251 if (opened_path) {
252 spprintf(opened_path, MAXPATHLEN, "%s", phar->fname);
277 if (opened_path) {
278 spprintf(opened_path, MAXPATHLEN, "%s", phar->fname);
334 if (opened_path) {
335 spprintf(opened_path, MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename);
/PHP_TRUNK/ext/spl/
H A Dphp_spl.c274 zend_string *opened_path; local
275 if (!file_handle.opened_path) {
276 file_handle.opened_path = estrndup(class_file, class_file_len);
278 opened_path = zend_string_init(file_handle.opened_path, strlen(file_handle.opened_path), 0);
280 if (zend_hash_add(&EG(included_files), opened_path, &dummy)) {
287 zend_string_release(opened_path);
/PHP_TRUNK/ext/standard/
H A Dfile.c810 char *opened_path; local
829 if ((fd = php_open_temporary_fd_ex(dir, p->val, &opened_path, 1)) >= 0) {
832 RETVAL_STRING(opened_path);
833 efree(opened_path);
H A Dftp_fopen_wrapper.c134 char **opened_path, php_stream_context *context, php_stream **preuseid,
415 int options, char **opened_path, php_stream_context *context STREAMS_DC)
458 return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC);
466 stream = php_ftp_fopen_connect(wrapper, path, mode, options, opened_path, context, &reuseid, &resource, &use_ssl, &use_ssl_on_data);
687 char **opened_path, php_stream_context *context STREAMS_DC)
699 stream = php_ftp_fopen_connect(wrapper, path, mode, options, opened_path, context, &reuseid, &resource, &use_ssl, &use_ssl_on_data);
133 php_ftp_fopen_connect(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context, php_stream **preuseid, php_url **presource, int *puse_ssl, int *puse_ssl_on_data) argument
414 php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
686 php_stream_ftp_opendir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dhttp_fopen_wrapper.c113 const char *path, const char *mode, int options, char **opened_path,
875 stream = php_stream_url_wrap_http_ex(wrapper, new_path, mode, options, opened_path, context, --redirect_max, HTTP_WRAPPER_REDIRECTED STREAMS_CC);
928 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ argument
930 return php_stream_url_wrap_http_ex(wrapper, path, mode, options, opened_path, context, PHP_URL_REDIRECT_MAX, HTTP_WRAPPER_HEADER_INIT STREAMS_CC);
112 php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context, int redirect_max, int flags STREAMS_DC) argument
H A Dphp_fopen_wrapper.c175 char **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */
348 if (!(stream = php_stream_open_wrapper(p + 10, mode, options, opened_path))) {
174 php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c256 char **opened_path,
315 if (opened_path) {
316 *opened_path = estrdup(path);
252 php_stream_zip_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c114 char **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, char **opened_path, php_stream_context *context STREAMS_DC) argument
/PHP_TRUNK/main/
H A Dfopen_wrappers.c343 static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, char **opened_path) argument
351 if (fp && opened_path) {
352 *opened_path = expand_filepath_with_mode(path, NULL, NULL, 0, CWD_EXPAND);
622 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path) argument
632 if (opened_path) {
633 *opened_path = NULL;
648 return php_fopen_and_set_opened_path(filename, mode, opened_path);
686 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path);
H A Dmain.c1355 static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path) argument
1357 return php_stream_open_wrapper_as_file((char *)filename, "rb", USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE, opened_path);
1394 php_stream *stream = php_stream_open_wrapper((char *)filename, "rb", mode, &handle->opened_path);
2517 primary_file->opened_path == NULL &&
2525 primary_file->opened_path = estrndup(realfile, realfile_len);
2531 prepend_file.opened_path = NULL;
2541 append_file.opened_path = NULL;
H A Dphp_open_temporary_file.c100 char *opened_path; local
141 if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
142 efree(opened_path);
149 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) {
152 if (VCWD_CHMOD(opened_path, 0600)) {
153 efree(opened_path);
157 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600);
161 fd = mkstemp(opened_path);
163 if (mktemp(opened_path)) {
164 fd = VCWD_OPEN(opened_path, open_flag
[all...]
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c210 int options, char **opened_path, php_stream_context *context STREAMS_DC)
222 if (opened_path) {
223 *opened_path = estrdup(path);
209 php_glob_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dmemory.c618 const char *mode, int options, char **opened_path,
617 php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dplain_wrapper.c195 char *opened_path = NULL; local
198 fd = php_open_temporary_fd(dir, pfx, &opened_path);
203 *opened_path_ptr = opened_path;
210 stream->orig_path = estrdup(opened_path);
212 self->temp_file_name = opened_path;
890 int options, char **opened_path, php_stream_context *context STREAMS_DC)
897 return php_glob_stream_wrapper.wops->dir_opener(&php_glob_stream_wrapper, path, mode, options, opened_path, context STREAMS_REL_CC);
928 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC) argument
956 if (opened_path) {
957 *opened_path
889 php_plain_files_dir_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
1027 php_plain_files_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
1393 _php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path, int options STREAMS_DC) argument
[all...]
H A Dstreams.c2025 char **opened_path, php_stream_context *context STREAMS_DC)
2034 if (opened_path) {
2035 *opened_path = NULL;
2071 opened_path, context STREAMS_REL_CC);
2089 if (opened_path && !*opened_path && resolved_path) {
2090 *opened_path = resolved_path;
2150 if (opened_path && *opened_path) {
2151 efree(*opened_path);
2024 _php_stream_open_wrapper_ex(const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
[all...]
H A Duserspace.c48 static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC);
56 int options, char **opened_path, php_stream_context *context STREAMS_DC);
154 function stream_open($path, $mode, $options, &$opened_path)
328 int options, char **opened_path, php_stream_context *context STREAMS_DC)
387 if (Z_ISREF(args[3]) && Z_TYPE_P(Z_REFVAL(args[3])) == IS_STRING && opened_path) {
388 *opened_path = estrndup(Z_STRVAL_P(Z_REFVAL(args[3])), Z_STRLEN_P(Z_REFVAL(args[3])));
418 int options, char **opened_path, php_stream_context *context STREAMS_DC)
327 user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument
417 user_wrapper_opendir(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC) argument

Completed in 38 milliseconds