Searched refs:opened_path (Results 1 - 25 of 67) 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/ext/bz2/
H A Dphp_bz2.h50 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
54 #define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper), (path), (mode), (options), (opened_path), NULL STREAMS_CC TSRMLS_CC)
H A Dbz2.c212 char **opened_path,
242 if (opened_path && bz_file) {
244 *opened_path = path_copy;
247 *opened_path = estrdup(path_copy);
260 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path);
272 if (opened_path && !bz_file && mode[0] == 'w') {
273 VCWD_UNLINK(*opened_path);
208 _php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
/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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
27 php_stream *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 TSRMLS_DC);
/PHP_TRUNK/main/
H A Dfopen_wrappers.h51 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC);
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...]
H A Dfopen_wrappers.c342 static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, char **opened_path TSRMLS_DC)
350 if (fp && opened_path) {
351 *opened_path = expand_filepath_with_mode(path, NULL, NULL, 0, CWD_EXPAND TSRMLS_CC);
621 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC)
631 if (opened_path) {
632 *opened_path = NULL;
647 return php_fopen_and_set_opened_path(filename, mode, opened_path TSRMLS_CC);
685 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path TSRMLS_CC);
/PHP_TRUNK/main/streams/
H A Dphp_stream_plain_wrapper.h30 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC);
33 PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path, int options STREAMS_DC TSRMLS_DC);
48 PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, char **opened_path STREAMS_DC TSRMLS_DC);
49 #define php_stream_fopen_temporary_file(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx), (opened_path) STREAMS_CC TSRMLS_CC)
54 PHPAPI FILE * _php_stream_open_wrapper_as_file(char * path, char * mode, int options, char **opened_path STREAMS_DC TSRMLS_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 TSRMLS_CC)
H A Dcast.c354 PHPAPI FILE * _php_stream_open_wrapper_as_file(char *path, char *mode, int options, char **opened_path STREAMS_DC TSRMLS_DC)
359 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path);
367 if (opened_path && *opened_path) {
368 efree(*opened_path);
H A Dglob_wrapper.c210 int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_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 TSRMLS_DC) argument
H A Dplain_wrapper.c194 char *opened_path = NULL; local
197 fd = php_open_temporary_fd(dir, pfx, &opened_path TSRMLS_CC);
202 *opened_path_ptr = opened_path;
209 stream->orig_path = estrdup(opened_path);
211 self->temp_file_name = opened_path;
857 int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
864 return php_glob_stream_wrapper.wops->dir_opener(&php_glob_stream_wrapper, path, mode, options, opened_path, context STREAMS_REL_CC TSRMLS_CC);
895 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC) argument
923 if (opened_path) {
924 *opened_path
856 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 TSRMLS_DC) argument
994 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 TSRMLS_DC) argument
1376 _php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path, int options STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_TRUNK/sapi/apache/
H A Dsapi_apache.c50 file_handle.opened_path = NULL;
/PHP_TRUNK/sapi/apache_hooks/
H A Dsapi_apache.c51 file_handle.opened_path = NULL;
/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 TSRMLS_CC);
324 if (fh->opened_path) {
325 efree(fh->opened_path);
326 fh->opened_path = NULL;
H A Dzend_stream.h68 char *opened_path; member in struct:_zend_file_handle
/PHP_TRUNK/ext/zip/
H A Dphp_zip.h93 php_stream *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 TSRMLS_DC);
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 TSRMLS_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/opcache/
H A DZendAccelerator.c678 if (!file_handle->opened_path) {
697 if (GetFileAttributesEx(file_handle->opened_path, GetFileExInfoStandard, &fdata) != 0) {
760 char *file_path = file_handle->opened_path;
825 if (file_handle->opened_path) {
826 if (strcmp(persistent_script->full_path->val, file_handle->opened_path) != 0) {
835 file_handle->opened_path = full_path_ptr;
841 file_handle->opened_path = NULL;
849 file_handle->opened_path = NULL;
855 file_handle->opened_path = NULL;
860 ps_handle.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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
H A Dstream.h27 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 TSRMLS_DC);
/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 = STR_INIT(file_handle.opened_path, strlen(file_handle.opened_path), 0);
280 if (zend_hash_add(&EG(included_files), opened_path, &dummy)) {
287 STR_RELEASE(opened_path);
/PHP_TRUNK/ext/zlib/
H A Dphp_zlib.h61 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
H A Dzlib_fopen_wrapper.c112 char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
131 innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context);
111 php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument

Completed in 25 milliseconds

123