/php-src/Zend/ |
H A D | zend.c | 86 ZEND_API FILE *(*zend_fopen)(zend_string *filename, zend_string **opened_path); 624 static FILE *zend_fopen_wrapper(zend_string *filename, zend_string **opened_path) /* {{{ */ in zend_fopen_wrapper() argument 626 if (opened_path) { in zend_fopen_wrapper() 627 *opened_path = zend_string_copy(filename); in zend_fopen_wrapper() 1893 if (file_handle->opened_path) { in zend_execute_script() 1894 zend_hash_add_empty_element(&EG(included_files), file_handle->opened_path); in zend_execute_script()
|
H A D | zend_execute.c | 4914 if (!file_handle.opened_path) { in zend_include_or_eval() 4915 file_handle.opened_path = zend_string_copy(resolved_path); in zend_include_or_eval() 4918 if (zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path)) { in zend_include_or_eval()
|
H A D | zend.h | 241 FILE *(*fopen_function)(zend_string *filename, zend_string **opened_path); 333 extern ZEND_API FILE *(*zend_fopen)(zend_string *filename, zend_string **opened_path);
|
/php-src/ext/spl/ |
H A D | php_spl.c | 257 zend_string *opened_path; in spl_autoload() local 258 if (!file_handle.opened_path) { in spl_autoload() 259 file_handle.opened_path = zend_string_copy(class_file); in spl_autoload() 261 opened_path = zend_string_copy(file_handle.opened_path); in spl_autoload() 263 if (zend_hash_add(&EG(included_files), opened_path, &dummy)) { in spl_autoload() 268 zend_string_release_ex(opened_path, 0); in spl_autoload()
|
/php-src/main/ |
H A D | main.c | 1527 static FILE *php_fopen_wrapper_for_zend(zend_string *filename, zend_string **opened_path) in php_fopen_wrapper_for_zend() argument 1529 *opened_path = filename; in php_fopen_wrapper_for_zend() 1530 …e), "rb", USE_PATH|REPORT_ERRORS|STREAM_OPEN_FOR_INCLUDE|STREAM_OPEN_FOR_ZEND_STREAM, opened_path); in php_fopen_wrapper_for_zend() 1566 zend_string *opened_path; in php_stream_open_for_zend_ex() local 1571 opened_path = filename = handle->filename; in php_stream_open_for_zend_ex() 1572 …m_open_wrapper((char *)ZSTR_VAL(filename), "rb", mode | STREAM_OPEN_FOR_ZEND_STREAM, &opened_path); in php_stream_open_for_zend_ex() 1577 handle->opened_path = opened_path; in php_stream_open_for_zend_ex() 2478 primary_file->opened_path == NULL && in php_execute_script_ex() 2482 primary_file->opened_path = zend_string_init(realfile, strlen(realfile), 0); in php_execute_script_ex() 2483 zend_hash_add_empty_element(&EG(included_files), primary_file->opened_path); in php_execute_script_ex()
|
H A D | php_streams.h | 75 …ream_fopen_temporary_file_rel(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx)… argument 138 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); 147 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); 597 …pper_ex(const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
|
/php-src/main/streams/ |
H A D | plain_wrapper.c | 219 zend_string *opened_path = NULL; in _php_stream_fopen_temporary_file() local 227 *opened_path_ptr = opened_path; in _php_stream_fopen_temporary_file() 234 stream->orig_path = estrndup(ZSTR_VAL(opened_path), ZSTR_LEN(opened_path)); in _php_stream_fopen_temporary_file() 236 self->temp_name = opened_path; in _php_stream_fopen_temporary_file() 1128 if (opened_path) { in _php_stream_fopen() 1158 if (opened_path) { in _php_stream_fopen() 1176 if (opened_path) { in _php_stream_fopen() 1177 zend_string_release_ex(*opened_path, 0); in _php_stream_fopen() 1178 *opened_path = NULL; in _php_stream_fopen() 1604 if (opened_path) { in _php_stream_fopen_with_path() [all …]
|
H A D | cast.c | 343 …eam_open_wrapper_as_file(char *path, char *mode, int options, zend_string **opened_path STREAMS_DC) in _php_stream_open_wrapper_as_file() 348 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path); in _php_stream_open_wrapper_as_file() 356 if (opened_path && *opened_path) { in _php_stream_open_wrapper_as_file() 357 zend_string_release_ex(*opened_path, 0); in _php_stream_open_wrapper_as_file()
|
H A D | glob_wrapper.c | 216 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in php_glob_stream_opener() argument 224 if (opened_path) { in php_glob_stream_opener() 225 *opened_path = zend_string_init(path, strlen(path), 0); in php_glob_stream_opener()
|
H A D | streams.c | 2179 zend_string **opened_path, php_stream_context *context STREAMS_DC) argument 2189 if (opened_path) { 2191 path_str = *opened_path; 2193 *opened_path = NULL; 2236 opened_path, context STREAMS_REL_CC); 2254 if (opened_path && !*opened_path && resolved_path) { 2255 *opened_path = resolved_path; 2315 if (opened_path && *opened_path) { 2316 zend_string_release_ex(*opened_path, 0); 2317 *opened_path = NULL;
|
H A D | userspace.c | 45 …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); 294 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in user_wrapper_opener() argument 355 if (Z_ISREF(args[3]) && Z_TYPE_P(Z_REFVAL(args[3])) == IS_STRING && opened_path) { in user_wrapper_opener() 356 *opened_path = zend_string_copy(Z_STR_P(Z_REFVAL(args[3]))); in user_wrapper_opener() 395 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) in user_wrapper_opendir() argument
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg.c | 1098 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… in phpdbg_stream_url_wrap_php() argument 1118 …return PHPDBG_G(orig_url_wrap_php)->wops->stream_opener(wrapper, path, mode, options, opened_path,… in phpdbg_stream_url_wrap_php()
|
/php-src/ext/phar/ |
H A D | phar.c | 3316 if (f.opened_path) { in phar_compile_file() 3317 zend_string_release(f.opened_path); in phar_compile_file() 3319 f.opened_path = file_handle->opened_path; in phar_compile_file()
|
H A D | stream.c | 161 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… in phar_wrapper_open_url() argument 233 if (opened_path) { in phar_wrapper_open_url() 234 …*opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->fi… in phar_wrapper_open_url() 251 if (opened_path) { in phar_wrapper_open_url() 252 *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname); in phar_wrapper_open_url() 288 if (opened_path) { in phar_wrapper_open_url() 289 *opened_path = strpprintf(MAXPATHLEN, "%s", phar->fname); in phar_wrapper_open_url() 345 if (opened_path) { in phar_wrapper_open_url() 346 …*opened_path = strpprintf(MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->fi… in phar_wrapper_open_url()
|
/php-src/ext/dom/ |
H A D | html_document.c | 993 zend_string *opened_path = NULL; in PHP_METHOD() local 994 …stream = php_stream_open_wrapper_ex(filename, "rb", REPORT_ERRORS, &opened_path, php_libxml_get_st… in PHP_METHOD() 1097 if (stream->wrapper == &php_plain_files_wrapper && opened_path != NULL) { in PHP_METHOD() 1098 xmlChar *converted = xmlPathToURI((const xmlChar *) ZSTR_VAL(opened_path)); in PHP_METHOD() 1127 if (opened_path != NULL) { in PHP_METHOD() 1128 zend_string_release_ex(opened_path, false); in PHP_METHOD() 1151 if (opened_path != NULL) { in PHP_METHOD() 1152 zend_string_release_ex(opened_path, false); in PHP_METHOD()
|
/php-src/ext/opcache/ |
H A D | ZendAccelerator.c | 972 if (!file_handle->opened_path) { in zend_get_file_handle_timestamp_win() 1047 if (file_handle->opened_path) { in zend_get_file_handle_timestamp() 1112 if (file_handle->opened_path) { in do_validate_timestamps() 1131 file_handle->opened_path = NULL; in do_validate_timestamps() 1145 file_handle->opened_path = NULL; in do_validate_timestamps() 1429 file_handle.opened_path = NULL; in zend_accel_invalidate() 1752 …andle->opened_path && zend_accel_blacklist_is_blacklisted(&accel_blacklist, ZSTR_VAL(file_handle->… in opcache_compile_file() 1869 if (file_handle->opened_path) { in opcache_compile_file() 1891 if (!file_handle->opened_path) { in file_cache_compile_file() 2054 if (file_handle->opened_path) { in persistent_compile_file() [all …]
|
H A D | zend_file_cache.c | 1773 zend_string *full_path = file_handle->opened_path;
|
/php-src/ext/dom/tests/modern/html/interactions/ |
H A D | HTMLDocument_documentURI.phpt | 21 public function stream_open($path, $mode, $options, &$opened_path) {
|
/php-src/ext/standard/ |
H A D | http_fopen_wrapper.c | 119 const char *path, const char *mode, int options, zend_string **opened_path, in php_stream_url_wrap_http_ex() argument 927 wrapper, new_path, mode, options, opened_path, context, in php_stream_url_wrap_http_ex() 981 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con… in php_stream_url_wrap_http() argument 992 wrapper, path, mode, options, opened_path, context, in php_stream_url_wrap_http()
|
H A D | file.c | 693 zend_string *opened_path; in PHP_FUNCTION() local 709 …if ((fd = php_open_temporary_fd_ex(dir, ZSTR_VAL(p), &opened_path, PHP_TMP_FILE_OPEN_BASEDIR_CHECK… in PHP_FUNCTION() 711 RETVAL_STR(opened_path); in PHP_FUNCTION()
|
/php-src/ext/libxml/tests/ |
H A D | libxml_set_streams_context_overwrite.phpt | 11 function stream_open($path, $mode, $options, &$opened_path)
|
/php-src/docs-old/ |
H A D | streams.md | 49 int options, char **opened_path); 65 * `opened_path` is used to return the path of the actual file opened, but if you 67 `efree()ing` `opened_path`. 68 * `opened_path` may be (and usually is) `NULL`. 82 const char *pfx, char **opened_path);
|
/php-src/ext/standard/tests/file/ |
H A D | gh13136.phpt | 12 public function stream_open($path, $mode, $options, &$opened_path) {
|
/php-src/ext/pdo_sqlite/tests/subclasses/ |
H A D | stream_test.inc | 12 public function stream_open($path, $mode, $options, &$opened_path)
|
/php-src/ext/zip/ |
H A D | php_zip.h | 91 …rapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_con…
|