Lines Matching refs:real_path
730 PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC)
732 return expand_filepath_ex(filepath, real_path, NULL, 0 TSRMLS_CC);
738 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, siz… argument
740 …return expand_filepath_with_mode(filepath, real_path, relative_to, relative_to_len, CWD_FILEPATH T…
746 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_… argument
778 if (real_path) {
779 memcpy(real_path, filepath, copy_len);
780 real_path[copy_len] = '\0';
782 real_path = estrndup(filepath, copy_len);
785 return real_path;
802 if (real_path) {
804 memcpy(real_path, new_state.cwd, copy_len);
805 real_path[copy_len] = '\0';
807 real_path = estrndup(new_state.cwd, new_state.cwd_length);
811 return real_path;