Lines Matching refs:url

1217 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_…  in php_plain_files_url_stater()  argument
1220 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1221 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1224 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1231 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1236 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1240 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1243 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1247 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1248 url += sizeof("file://") - 1; in php_plain_files_unlink()
1251 if (php_check_open_basedir(url)) { in php_plain_files_unlink()
1255 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1258 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1472 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1474 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1475 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1478 if (php_check_open_basedir(url)) { in php_plain_files_rmdir()
1483 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_rmdir()
1484 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1489 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1490 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1500 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1511 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_metadata()
1512 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1517 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1518 url += sizeof("file://") - 1; in php_plain_files_metadata()
1521 if (php_check_open_basedir(url)) { in php_plain_files_metadata()
1528 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1529 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1531 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1537 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1544 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1550 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1556 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1562 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1567 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1574 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()