Lines Matching refs:url
1120 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_… in php_plain_files_url_stater() argument
1122 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1123 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1126 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1132 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1137 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1141 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1144 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1148 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1149 url += sizeof("file://") - 1; in php_plain_files_unlink()
1152 if (php_check_open_basedir(url)) { in php_plain_files_unlink()
1156 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1159 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1356 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1358 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1359 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1362 if (php_check_open_basedir(url)) { in php_plain_files_rmdir()
1367 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_rmdir()
1368 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1373 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1374 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1384 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1395 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_metadata()
1396 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1401 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1402 url += sizeof("file://") - 1; in php_plain_files_metadata()
1405 if (php_check_open_basedir(url)) { in php_plain_files_metadata()
1412 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1413 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1415 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1421 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1428 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1434 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1440 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1446 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1451 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1454 php_error_docref1(NULL, url, E_WARNING, "Unknown option %d for stream_metadata", option); in php_plain_files_metadata()
1458 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()