Lines Matching refs:url
1039 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_… in php_plain_files_url_stater() argument
1041 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_url_stater()
1042 url += sizeof("file://") - 1; in php_plain_files_url_stater()
1045 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1 TSRMLS_CC)) { in php_plain_files_url_stater()
1052 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1058 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1062 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1065 static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_st… in php_plain_files_unlink() argument
1069 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_unlink()
1070 url += sizeof("file://") - 1; in php_plain_files_unlink()
1073 if (php_check_open_basedir(url TSRMLS_CC)) { in php_plain_files_unlink()
1077 ret = VCWD_UNLINK(url); in php_plain_files_unlink()
1080 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_unlink()
1261 static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_str… in php_plain_files_rmdir() argument
1263 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_rmdir()
1264 url += sizeof("file://") - 1; in php_plain_files_rmdir()
1267 if (php_check_open_basedir(url TSRMLS_CC)) { in php_plain_files_rmdir()
1272 if (!php_win32_check_trailing_space(url, (int)strlen(url))) { in php_plain_files_rmdir()
1273 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_rmdir()
1278 if (VCWD_RMDIR(url) < 0) { in php_plain_files_rmdir()
1279 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(errno)); in php_plain_files_rmdir()
1289 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void … in php_plain_files_metadata() argument
1299 int url_len = strlen(url); in php_plain_files_metadata()
1303 if (!php_win32_check_trailing_space(url, url_len)) { in php_plain_files_metadata()
1304 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(ENOENT)); in php_plain_files_metadata()
1309 if (strncasecmp(url, "file://", sizeof("file://") - 1) == 0) { in php_plain_files_metadata()
1310 url += sizeof("file://") - 1; in php_plain_files_metadata()
1313 if (php_check_open_basedir(url TSRMLS_CC)) { in php_plain_files_metadata()
1320 if (VCWD_ACCESS(url, F_OK) != 0) { in php_plain_files_metadata()
1321 FILE *file = VCWD_FOPEN(url, "w"); in php_plain_files_metadata()
1323 …php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to create file %s because %s", url, stre… in php_plain_files_metadata()
1329 ret = VCWD_UTIME(url, newtime); in php_plain_files_metadata()
1336 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to find uid for %s", (char *)value); in php_plain_files_metadata()
1342 ret = VCWD_CHOWN(url, uid, -1); in php_plain_files_metadata()
1348 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to find gid for %s", (char *)value); in php_plain_files_metadata()
1354 ret = VCWD_CHOWN(url, -1, gid); in php_plain_files_metadata()
1359 ret = VCWD_CHMOD(url, mode); in php_plain_files_metadata()
1362 …php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unknown option %d for stream_metadata", option); in php_plain_files_metadata()
1366 php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Operation failed: %s", strerror(errno)); in php_plain_files_metadata()