Lines Matching refs:url

1083 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_…  in php_plain_files_url_stater()  argument
1085 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1086 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1089 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1095 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1100 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1104 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1107 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1111 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1112 url += sizeof("file://") - 1; in php_plain_files_unlink()
1115 if (php_check_open_basedir(url)) { in php_plain_files_unlink()
1119 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1122 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1320 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1322 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1323 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1326 if (php_check_open_basedir(url)) { in php_plain_files_rmdir()
1331 if (!php_win32_check_trailing_space(url, (int)strlen(url))) { in php_plain_files_rmdir()
1332 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1337 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1338 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1348 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1358 int url_len = (int)strlen(url); in php_plain_files_metadata()
1362 if (!php_win32_check_trailing_space(url, url_len)) { in php_plain_files_metadata()
1363 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1368 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1369 url += sizeof("file://") - 1; in php_plain_files_metadata()
1372 if (php_check_open_basedir(url)) { in php_plain_files_metadata()
1379 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1380 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1382 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1388 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1395 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1401 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1407 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1413 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1418 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1421 php_error_docref1(NULL, url, E_WARNING, "Unknown option %d for stream_metadata", option); in php_plain_files_metadata()
1425 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()