Lines Matching refs:url
1004 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, char *url, int flags, php_stream… in php_plain_files_url_stater() argument
1007 if (strncmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1008 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1011 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1 TSRMLS_CC)) { in php_plain_files_url_stater()
1018 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1024 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1028 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1031 static int php_plain_files_unlink(php_stream_wrapper *wrapper, char *url, int options, php_stream_c… in php_plain_files_unlink() argument
1036 if ((p = strstr(url, "://")) != NULL) { in php_plain_files_unlink()
1037 url = p + 3; in php_plain_files_unlink()
1040 if (php_check_open_basedir(url TSRMLS_CC)) { in php_plain_files_unlink()
1044 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1047 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1229 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_stream_co… in php_plain_files_rmdir() argument
1232 int url_len = strlen(url); in php_plain_files_rmdir()
1234 if (php_check_open_basedir(url TSRMLS_CC)) { in php_plain_files_rmdir()
1239 if (!php_win32_check_trailing_space(url, url_len)) { in php_plain_files_rmdir()
1240 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1245 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1246 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1256 static int php_plain_files_metadata(php_stream_wrapper *wrapper, char *url, int option, void *value… in php_plain_files_metadata() argument
1267 int url_len = strlen(url); in php_plain_files_metadata()
1271 if (!php_win32_check_trailing_space(url, url_len)) { in php_plain_files_metadata()
1272 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1277 if ((p = strstr(url, "://")) != NULL) { in php_plain_files_metadata()
1278 url = p + 3; in php_plain_files_metadata()
1281 if (php_check_open_basedir(url TSRMLS_CC)) { in php_plain_files_metadata()
1288 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1289 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1291 …php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to create file %s because %s", url, stre… in php_plain_files_metadata()
1297 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1304 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1310 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1316 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1322 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1327 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1330 …php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unknown option %d for stream_metadata", option); in php_plain_files_metadata()
1334 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()