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

/PHP_TRUNK/Zend/
H A Dzend_stream.h72 zend_string *opened_path; member in struct:_zend_file_handle
H A Dzend.c51 ZEND_API FILE *(*zend_fopen)(const char *filename, zend_string **opened_path);
380 static FILE *zend_fopen_wrapper(const char *filename, zend_string **opened_path) /* {{{ */ argument
382 if (opened_path) {
383 *opened_path = zend_string_init(filename, strlen(filename), 0);
1384 if (file_handle->opened_path) {
1385 zend_hash_add_empty_element(&EG(included_files), file_handle->opened_path);
H A Dzend_language_scanner.c280 file_handle->opened_path = NULL;
551 if (file_handle->opened_path) {
552 compiled_filename = zend_string_copy(file_handle->opened_path);
635 zend_string *opened_path = NULL; local
646 file_handle.opened_path = NULL;
651 if (!file_handle.opened_path) {
652 file_handle.opened_path = opened_path = zend_string_copy(Z_STR_P(filename));
655 zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path);
657 if (opened_path) {
[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, zend_string **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, 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 Dftp_fopen_wrapper.c134 zend_string **opened_path, php_stream_context *context, php_stream **preuseid,
415 int options, zend_string **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 zend_string **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, zend_string **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, zend_string **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, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dphp_fopen_wrapper.c175 zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */
349 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, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
H A Dhttp_fopen_wrapper.c113 const char *path, const char *mode, int options, zend_string **opened_path,
892 stream = php_stream_url_wrap_http_ex(wrapper, new_path, mode, options, opened_path, context, --redirect_max, HTTP_WRAPPER_REDIRECTED STREAMS_CC);
949 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) /* {{{ */ argument
951 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, zend_string **opened_path, php_stream_context *context, int redirect_max, int flags STREAMS_DC) argument
H A Dfile.c802 zend_string *opened_path; local
821 if ((fd = php_open_temporary_fd_ex(dir, p->val, &opened_path, 1)) >= 0) {
823 RETVAL_STR(opened_path);
/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
/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 Dmemory.c622 const char *mode, int options, zend_string **opened_path,
621 php_stream_url_wrap_rfc2397(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 Duserspace.c48 static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
56 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
154 function stream_open($path, $mode, $options, &$opened_path)
328 int options, zend_string **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 = zend_string_copy(Z_STR_P(Z_REFVAL(args[3])));
418 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
327 user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, zend_string **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, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
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 Dstreams.c2003 zend_string **opened_path, php_stream_context *context STREAMS_DC)
2012 if (opened_path) {
2013 *opened_path = NULL;
2049 opened_path, context STREAMS_REL_CC);
2067 if (opened_path && !*opened_path && resolved_path) {
2068 *opened_path = resolved_path;
2128 if (opened_path && *opened_path) {
2129 zend_string_release(*opened_path);
2002 _php_stream_open_wrapper_ex(const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
[all...]
/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 = zend_string_init(class_file, class_file_len, 0);
278 opened_path = zend_string_copy(file_handle.opened_path);
280 if (zend_hash_add(&EG(included_files), opened_path, &dummy)) {
287 zend_string_release(opened_path);
/PHP_TRUNK/ext/bz2/
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...]
/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
/PHP_TRUNK/main/
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 Dmain.c1301 static FILE *php_fopen_wrapper_for_zend(const char *filename, zend_string **opened_path) argument
1303 return php_stream_open_wrapper_as_file((char *)filename, "rb", USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE, opened_path);
1340 php_stream *stream = php_stream_open_wrapper((char *)filename, "rb", mode, &handle->opened_path);
2426 primary_file->opened_path == NULL &&
2430 primary_file->opened_path = zend_string_init(realfile, strlen(realfile), 0);
2431 zend_hash_add_empty_element(&EG(included_files), primary_file->opened_path);
2437 prepend_file.opened_path = NULL;
2447 append_file.opened_path = NULL;
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 = opened_path->val;
576 fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &opened_path);
578 fh.filename = opened_path->val;
600 if (opened_path) {
601 zend_string_release(opened_path);

Completed in 41 milliseconds