Skip to content

Commit cf49da4

Browse files
authored
fix: Typo FPM_REQUEST_INFO (#134)
* Typo FPM_REQUEST_INFO See `[FPM_REQUEST_INFO] = "Getting request information",` in https://github.com/php/php-src/blob/07fa13088e1349f4b5a044faeee57f2b34f6b6e4/sapi/fpm/fpm/fpm_request.c#L27 * Fallback for PHP<7.4
1 parent 51922f4 commit cf49da4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

phpfpm/phpfpm.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ const PoolProcessRequestFinishing string = "Finishing"
4040
// PoolProcessRequestReadingHeaders defines a process that is reading headers.
4141
const PoolProcessRequestReadingHeaders string = "Reading headers"
4242

43-
// PoolProcessRequestInfo defines a process that is getting request information.
43+
// PoolProcessRequestInfo defines a process that is getting request information. Was changed in PHP 7.4 to PoolProcessRequestInfo74
4444
const PoolProcessRequestInfo string = "Getting request informations"
45+
const PoolProcessRequestInfo74 string = "Getting request information"
4546

4647
// PoolProcessRequestEnding defines a process that is about to end.
4748
const PoolProcessRequestEnding string = "Ending"
@@ -230,6 +231,7 @@ func CountProcessState(processes []PoolProcess) (active int64, idle int64, total
230231
case PoolProcessRequestEnding:
231232
case PoolProcessRequestFinishing:
232233
case PoolProcessRequestInfo:
234+
case PoolProcessRequestInfo74:
233235
case PoolProcessRequestReadingHeaders:
234236
active++
235237
default:

0 commit comments

Comments
 (0)