소스 검색

Add missing "HTTP_HOST" in wordpress-fpm-run test

This avoids the following warning:

    PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/wp-includes/functions.php on line 5880
Tianon Gravi 4 년 전
부모
커밋
3fbd52e3e6
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      test/tests/wordpress-fpm-run/run.sh

+ 1 - 0
test/tests/wordpress-fpm-run/run.sh

@@ -42,6 +42,7 @@ fcgi-request() {
 		-e SCRIPT_NAME="$url" \
 		-e SCRIPT_FILENAME=/var/www/html/"${url#/}" \
 		-e QUERY_STRING="$queryString" \
+		-e HTTP_HOST='localhost' \
 		"$clientImage" \
 		-bind -connect fpm:9000
 }