Lines Matching refs:location

131 	char location[HTTP_HEADER_BLOCK_SIZE];  in php_stream_url_wrap_http_ex()  local
654 location[0] = '\0'; in php_stream_url_wrap_http_ex()
790 strlcpy(location, http_header_value, sizeof(location)); in php_stream_url_wrap_http_ex()
828 if (!reqok || (location[0] != '\0' && follow_location)) { in php_stream_url_wrap_http_ex()
833 if (location[0] != '\0') in php_stream_url_wrap_http_ex()
834 php_stream_notify_info(context, PHP_STREAM_NOTIFY_REDIRECTED, location, 0); in php_stream_url_wrap_http_ex()
839 if (location[0] != '\0') { in php_stream_url_wrap_http_ex()
845 if (strlen(location)<8 || (strncasecmp(location, "http://", sizeof("http://")-1) && in php_stream_url_wrap_http_ex()
846 strncasecmp(location, "https://", sizeof("https://")-1) && in php_stream_url_wrap_http_ex()
847 strncasecmp(location, "ftp://", sizeof("ftp://")-1) && in php_stream_url_wrap_http_ex()
848 strncasecmp(location, "ftps://", sizeof("ftps://")-1))) in php_stream_url_wrap_http_ex()
850 if (*location != '/') { in php_stream_url_wrap_http_ex()
851 if (*(location+1) != '\0' && resource->path) { in php_stream_url_wrap_http_ex()
867 snprintf(loc_path, sizeof(loc_path) - 1, "%s%s", ZSTR_VAL(resource->path), location); in php_stream_url_wrap_http_ex()
869 snprintf(loc_path, sizeof(loc_path) - 1, "%s/%s", ZSTR_VAL(resource->path), location); in php_stream_url_wrap_http_ex()
872 snprintf(loc_path, sizeof(loc_path) - 1, "/%s", location); in php_stream_url_wrap_http_ex()
875 strlcpy(loc_path, location, sizeof(loc_path)); in php_stream_url_wrap_http_ex()
883 strlcpy(new_path, location, sizeof(new_path)); in php_stream_url_wrap_http_ex()