Lines Matching refs:url
1153 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_… in php_plain_files_url_stater() argument
1155 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1156 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1159 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1165 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1170 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1174 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1177 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1181 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1182 url += sizeof("file://") - 1; in php_plain_files_unlink()
1185 if (php_check_open_basedir(url)) { in php_plain_files_unlink()
1189 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1192 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1389 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1391 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1392 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1395 if (php_check_open_basedir(url)) { in php_plain_files_rmdir()
1400 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_rmdir()
1401 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1406 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1407 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1417 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1428 if (!php_win32_check_trailing_space(url, strlen(url))) { in php_plain_files_metadata()
1429 php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1434 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1435 url += sizeof("file://") - 1; in php_plain_files_metadata()
1438 if (php_check_open_basedir(url)) { in php_plain_files_metadata()
1445 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1446 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1448 …php_error_docref1(NULL, url, E_WARNING, "Unable to create file %s because %s", url, strerror(errno… in php_plain_files_metadata()
1454 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1461 php_error_docref1(NULL, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1467 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1473 php_error_docref1(NULL, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1479 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1484 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1487 php_error_docref1(NULL, url, E_WARNING, "Unknown option %d for stream_metadata", option); in php_plain_files_metadata()
1491 php_error_docref1(NULL, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()