Skip to content

Missing Function: fpm_get_status #676

Open
@cedric-anne

Description

@cedric-anne

Function URL

https://www.php.net/manual/en/function.fpm-get-status.php

PHP Version

8.1

Safe Version

3.2.0

Extra Info

fpm_get_status() wrapper is missing on PHP 8.1. Since its first implementation, it may return false on error (see php/php-src@140def4), but the documentation introduces this return value only on PHP 8.2 (see php/doc-en@5764345).

I thought the following patch may permit to detect it on PHP 8.1, but it does not. I must miss something.

diff --git a/generator/config/detectErrorType.php b/generator/config/detectErrorType.php
index 988bb20..1b18ea2 100644
--- a/generator/config/detectErrorType.php
+++ b/generator/config/detectErrorType.php
@@ -55,6 +55,7 @@ return function (string $text): ErrorType {
         '/This function returns &true; if a session was successfully started,\s+otherwise &false;./m', // session_start
         '/&false;\s+if\s+the\s+timestamp\s+doesn\'t\s+fit\s+in\s+a\s+PHP\s+integer./m', // gmmktime / mktime
         '/<function>mktime<\/function>\s+returns\s+the\s+Unix\s+timestamp\s+of\s+the\s+arguments\s+given./', // mktime before https://github.com/php/doc-en/pull/2651
+        '/Associative\s+array\s+containing\s+the\s+full\s+FPM\s+pool\s+status/', // fpm_get_status
     ];
     foreach ($falsies as $falsie) {
         if (preg_match($falsie, $text)) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions