Lines Matching refs:path
142 PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path TSRMLS_DC)
160 path_len = strlen(path);
167 if (expand_filepath(path, resolved_name TSRMLS_CC) == NULL) {
286 PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC)
288 return php_check_open_basedir_ex(path, 1 TSRMLS_CC);
293 PHPAPI int php_check_open_basedir_ex(const char *path, int warn TSRMLS_DC) argument
303 if (strlen(path) > (MAXPATHLEN - 1)) {
304 … name is longer than the maximum allowed path length on this platform (%d): %s", MAXPATHLEN, path);
320 if (php_check_specific_open_basedir(ptr, path TSRMLS_CC) == 0) {
328 … restriction in effect. File(%s) is not within the allowed path(s): (%s)", path, PG(open_basedir));
342 static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, char **opened_path T… argument
346 if (php_check_open_basedir((char *)path TSRMLS_CC)) {
349 fp = VCWD_FOPEN(path, mode);
351 *opened_path = expand_filepath_with_mode(path, NULL, NULL, 0, CWD_EXPAND TSRMLS_CC);
473 PHPAPI char *php_resolve_path(const char *filename, int filename_length, const char *path TSRMLS_DC)
501 !path ||
502 !*path) {
510 ptr = path;
611 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **o… argument
635 || (!path || (path && !*path))
647 path_length = strlen(path);
652 pathbuf = estrdup(path);
655 memcpy(pathbuf, path, path_length);
661 pathbuf = estrdup(path);