Lines Matching refs:url

1161 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_…  in php_plain_files_url_stater()  argument
1163 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1164 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1167 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1173 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1178 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1182 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1185 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1189 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1190 url += sizeof("file://") - 1; in php_plain_files_unlink()
1193 if (php_check_open_basedir(url)) { in php_plain_files_unlink()
1197 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1200 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1397 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1399 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1400 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1403 if (php_check_open_basedir(url)) { in php_plain_files_rmdir()
1408 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_rmdir()
1409 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1414 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1415 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1425 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1436 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_metadata()
1437 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1442 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1443 url += sizeof("file://") - 1; in php_plain_files_metadata()
1446 if (php_check_open_basedir(url)) { in php_plain_files_metadata()
1453 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1454 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1456 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1462 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1469 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1475 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1481 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1487 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1492 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1499 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()