Lines Matching refs:filename

351 	zend_string *filename = NULL;  local
404filename = zend_strpprintf(0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_S…
406 filename = zend_string_init(SG(request_info).path_translated,
418 filename = zend_string_alloc(length + path_len + 2, 0);
419 memcpy(ZSTR_VAL(filename), PG(doc_root), length);
420 if (!IS_SLASH(ZSTR_VAL(filename)[length - 1])) { /* length is never 0 */
421 ZSTR_VAL(filename)[length++] = PHP_DIR_SEPARATOR; local
426 strncpy(ZSTR_VAL(filename) + length, path_info, path_len + 1);
427 ZSTR_LEN(filename) = length + path_len;
429 filename = zend_string_init(SG(request_info).path_translated,
434 if (filename) {
435 resolved_path = zend_resolve_path(filename);
439 if (filename) {
440 zend_string_release(filename);
456 zend_stream_init_filename_ex(file_handle, filename);
458 if (filename) {
459 zend_string_delref(filename);
488 PHPAPI zend_string *php_resolve_path(const char *filename, size_t filename_length, const char *path) argument
497 if (!filename || CHECK_NULL_PATH(filename, filename_length)) {
502 for (p = filename; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
503 if ((*p == ':') && (p - filename > 1) && (p[1] == '/') && (p[2] == '/')) {
504 wrapper = php_stream_locate_url_wrapper(filename, &actual_path, STREAM_OPEN_FOR_INCLUDE);
513 if ((*filename == '.' &&
514 (IS_SLASH(filename[1]) ||
515 ((filename[1] == '.') && IS_SLASH(filename[2])))) ||
516 IS_ABSOLUTE_PATH(filename, filename_length) ||
522 filename_length >=2 && IS_SLASH(filename[0]) && !IS_SLASH(filename[1]) ||
526 return tsrm_realpath_str(filename);
550 memcpy(trypath+(end-ptr)+1, filename, filename_length+1);
560 memcpy(trypath+len+1, filename, filename_length+1);
599 memcpy(trypath+exec_fname_length + 1, filename, filename_length+1);
635 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_str… argument
647 if (!filename) {
651 filename_length = strlen(filename);
657 if ((*filename == '.')
659 || IS_ABSOLUTE_PATH(filename, filename_length)
662 return php_fopen_and_set_opened_path(filename, mode, opened_path);
699 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) {
700 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", ptr, filename, MAXPATHLEN);