Lines Matching refs:url
1212 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_… in php_plain_files_url_stater() argument
1215 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1216 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1219 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1226 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1231 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1235 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1238 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1242 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1243 url += sizeof("file://") - 1; in php_plain_files_unlink()
1246 if (php_check_open_basedir(url)) { in php_plain_files_unlink()
1250 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1253 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1457 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1459 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1460 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1463 if (php_check_open_basedir(url)) { in php_plain_files_rmdir()
1468 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_rmdir()
1469 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1474 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1475 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1485 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1496 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_metadata()
1497 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1502 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1503 url += sizeof("file://") - 1; in php_plain_files_metadata()
1506 if (php_check_open_basedir(url)) { in php_plain_files_metadata()
1513 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1514 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1516 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1522 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1529 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1535 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1541 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1547 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1552 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1559 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()