Home
last modified time | relevance | path

Searched refs:opened_path (Results 1 – 25 of 77) sorted by last modified time

1234

/PHP-7.4/ext/phar/
H A Dphar.c3294 if (f.opened_path) { in phar_compile_file()
3295 efree(f.opened_path); in phar_compile_file()
3297 f.opened_path = file_handle->opened_path; in phar_compile_file()
/PHP-7.4/main/streams/
H A Dstreams.c2079 zend_string **opened_path, php_stream_context *context STREAMS_DC) argument
2088 if (opened_path) {
2089 *opened_path = NULL;
2128 opened_path, context STREAMS_REL_CC);
2146 if (opened_path && !*opened_path && resolved_path) {
2147 *opened_path = resolved_path;
2207 if (opened_path && *opened_path) {
2208 zend_string_release_ex(*opened_path, 0);
2209 *opened_path = NULL;
H A Dcast.c347 …eam_open_wrapper_as_file(char *path, char *mode, int options, zend_string **opened_path STREAMS_DC) in _php_stream_open_wrapper_as_file()
352 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path); in _php_stream_open_wrapper_as_file()
360 if (opened_path && *opened_path) { in _php_stream_open_wrapper_as_file()
361 zend_string_release_ex(*opened_path, 0); in _php_stream_open_wrapper_as_file()
H A Dplain_wrapper.c212 zend_string *opened_path = NULL; in _php_stream_fopen_temporary_file() local
220 *opened_path_ptr = opened_path; in _php_stream_fopen_temporary_file()
227 stream->orig_path = estrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path)); in _php_stream_fopen_temporary_file()
229 self->temp_name = opened_path; in _php_stream_fopen_temporary_file()
1069 if (opened_path) { in _php_stream_fopen()
1094 if (opened_path) { in _php_stream_fopen()
1112 if (opened_path) { in _php_stream_fopen()
1113 zend_string_release_ex(*opened_path, 0); in _php_stream_fopen()
1114 *opened_path = NULL; in _php_stream_fopen()
1531 if (opened_path) { in _php_stream_fopen_with_path()
[all …]
H A Duserspace.c46 …er, const char *filename, const char *mode, int options, zend_string **opened_path, php_stream_con…
54 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
330 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in user_wrapper_opener() argument
394 if (Z_ISREF(args[3]) && Z_TYPE_P(Z_REFVAL(args[3])) == IS_STRING && opened_path) { in user_wrapper_opener()
395 *opened_path = zend_string_copy(Z_STR_P(Z_REFVAL(args[3]))); in user_wrapper_opener()
425 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in user_wrapper_opendir() argument
H A Dglob_wrapper.c200 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_glob_stream_opener() argument
208 if (opened_path) { in php_glob_stream_opener()
209 *opened_path = zend_string_init(path, strlen(path), 0); in php_glob_stream_opener()
/PHP-7.4/main/
H A Dmain.c1598 static FILE *php_fopen_wrapper_for_zend(const char *filename, zend_string **opened_path) in php_fopen_wrapper_for_zend() argument
1600 …char *)filename, "rb", USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE, opened_path); in php_fopen_wrapper_for_zend()
1636 zend_string *opened_path; in php_stream_open_for_zend_ex() local
1637 php_stream *stream = php_stream_open_wrapper((char *)filename, "rb", mode, &opened_path); in php_stream_open_for_zend_ex()
1642 handle->opened_path = opened_path; in php_stream_open_for_zend_ex()
2633 primary_file->opened_path == NULL && in php_execute_script()
2637 primary_file->opened_path = zend_string_init(realfile, strlen(realfile), 0); in php_execute_script()
2638 zend_hash_add_empty_element(&EG(included_files), primary_file->opened_path); in php_execute_script()
H A Dfopen_wrappers.c338 … FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, zend_string **opened_path) argument
346 if (fp && opened_path) {
350 *opened_path = zend_string_init(tmp, strlen(tmp), 0);
635 …open_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) argument
643 if (opened_path) {
644 *opened_path = NULL;
662 return php_fopen_and_set_opened_path(filename, mode, opened_path);
702 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path);
H A Dphp_open_temporary_file.c92 char *opened_path = NULL; in php_do_open_temporary_file() local
96 char opened_path[MAXPATHLEN]; in php_do_open_temporary_file()
164 assert(strlen(opened_path) == opened_path_len); in php_do_open_temporary_file()
168 if (VCWD_CHMOD(opened_path, 0600)) { in php_do_open_temporary_file()
172 free(opened_path); in php_do_open_temporary_file()
175 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); in php_do_open_temporary_file()
181 fd = mkstemp(opened_path); in php_do_open_temporary_file()
183 if (mktemp(opened_path)) { in php_do_open_temporary_file()
184 fd = VCWD_OPEN(opened_path, open_flags); in php_do_open_temporary_file()
192 free(opened_path); in php_do_open_temporary_file()
[all …]
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c909 if (!file_handle->opened_path) { in zend_get_file_handle_timestamp_win()
984 if (file_handle->opened_path) { in zend_get_file_handle_timestamp()
1048 if (file_handle->opened_path) { in do_validate_timestamps()
1067 file_handle->opened_path = NULL; in do_validate_timestamps()
1075 file_handle->opened_path = NULL; in do_validate_timestamps()
1081 file_handle->opened_path = NULL; in do_validate_timestamps()
1696 …andle->opened_path && zend_accel_blacklist_is_blacklisted(&accel_blacklist, ZSTR_VAL(file_handle-> in opcache_compile_file()
1808 if (file_handle->opened_path) { in opcache_compile_file()
1830 if (!file_handle->opened_path) { in file_cache_compile_file()
2000 if (file_handle->opened_path) { in persistent_compile_file()
[all …]
H A Dzend_file_cache.c1520 zend_string *full_path = file_handle->opened_path;
/PHP-7.4/Zend/
H A Dzend_execute.c4280 if (!file_handle.opened_path) { in zend_include_or_eval()
4281 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval()
4284 if (zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path)) { in zend_include_or_eval()
H A Dzend_language_scanner.l295 file_handle->opened_path = NULL; in zend_destroy_file_handle()
569 if (file_handle->opened_path) { in open_file_for_scanning()
570 compiled_filename = zend_string_copy(file_handle->opened_path); in open_file_for_scanning()
662 zend_string *opened_path = NULL; in compile_filename() local
672 if (!file_handle.opened_path) { in compile_filename()
673 file_handle.opened_path = opened_path = zend_string_copy(Z_STR_P(filename)); in compile_filename()
676 zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path); in compile_filename()
678 if (opened_path) { in compile_filename()
679 zend_string_release_ex(opened_path, 0); in compile_filename()
H A Dzend.c73 ZEND_API FILE *(*zend_fopen)(const char *filename, zend_string **opened_path);
512 static FILE *zend_fopen_wrapper(const char *filename, zend_string **opened_path) /* {{{ */ in zend_fopen_wrapper() argument
514 if (opened_path) { in zend_fopen_wrapper()
515 *opened_path = zend_string_init(filename, strlen(filename), 0); in zend_fopen_wrapper()
1674 if (file_handle->opened_path) { in zend_execute_scripts()
1675 zend_hash_add_empty_element(&EG(included_files), file_handle->opened_path); in zend_execute_scripts()
H A Dzend_stream.c78 zend_string *opened_path; in zend_stream_open() local
83 zend_stream_init_fp(handle, zend_fopen(filename, &opened_path), filename); in zend_stream_open()
84 handle->opened_path = opened_path; in zend_stream_open()
220 if (fh->opened_path) { in zend_file_handle_dtor()
221 zend_string_release_ex(fh->opened_path, 0); in zend_file_handle_dtor()
222 fh->opened_path = NULL; in zend_file_handle_dtor()
H A Dzend.h192 FILE *(*fopen_function)(const char *filename, zend_string **opened_path);
280 extern ZEND_API FILE *(*zend_fopen)(const char *filename, zend_string **opened_path);
/PHP-7.4/ext/libxml/tests/
H A Dbug61367-read_2.phpt32 public function stream_open ( $path , $mode , $options , &$opened_path ) {
H A Dbug61367-read.phpt33 public function stream_open ( $path , $mode , $options , &$opened_path ) {
/PHP-7.4/ext/dba/
H A Ddba.c651 zend_string *opened_path = NULL; in php_dba_open() local
902 …pen_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open()
908 if (opened_path) { in php_dba_open()
909 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
910 zend_string_release_ex(opened_path, 0); in php_dba_open()
915 …ck_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path); in php_dba_open()
920 info->path = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
923 info->lock.name = pestrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path), persistent); in php_dba_open()
924 zend_string_release_ex(opened_path, 0); in php_dba_open()
/PHP-7.4/ext/standard/
H A Dhttp_fopen_wrapper.c120 const char *path, const char *mode, int options, zend_string **opened_path, in php_stream_url_wrap_http_ex() argument
914 wrapper, new_path, mode, options, opened_path, context, in php_stream_url_wrap_http_ex()
965 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… in php_stream_url_wrap_http() argument
972 wrapper, path, mode, options, opened_path, context, in php_stream_url_wrap_http()
H A Dfile.c821 zend_string *opened_path; in PHP_FUNCTION() local
837 …if ((fd = php_open_temporary_fd_ex(dir, ZSTR_VAL(p), &opened_path, PHP_TMP_FILE_OPEN_BASEDIR_CHECK… in PHP_FUNCTION()
839 RETVAL_STR(opened_path); in PHP_FUNCTION()
/PHP-7.4/sapi/litespeed/
H A Dlsapi_main.c1346 file_handle.opened_path = NULL; in cli_main()
1357 file_handle.opened_path = NULL; in cli_main()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg.c1335 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… in phpdbg_stream_url_wrap_php() argument
1355 …return PHPDBG_G(orig_url_wrap_php)->wops->stream_opener(wrapper, path, mode, options, opened_path,… in phpdbg_stream_url_wrap_php()
H A Dphpdbg_list.c285 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_init_compile_file()
293 if (file->opened_path) { in phpdbg_init_compile_file()
294 zend_string_release(file->opened_path); in phpdbg_init_compile_file()
295 file->opened_path = zend_string_init(filename, strlen(filename), 0); in phpdbg_init_compile_file()
/PHP-7.4/ext/zip/
H A Dphp_zip.h73 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…

Completed in 120 milliseconds

1234