From eb514b87ce21b10f23e900b741e454d182b84b8f Mon Sep 17 00:00:00 2001 From: shish <40659+shish@users.noreply.github.com> Date: Sun, 17 Nov 2024 03:18:49 +0000 Subject: [PATCH] Automatically regenerate the files --- generated/apache.php | 60 ------------------------------------- generated/curl.php | 5 ++++ generated/functionsList.php | 3 -- rector-migrate.php | 3 -- 4 files changed, 5 insertions(+), 66 deletions(-) diff --git a/generated/apache.php b/generated/apache.php index e6fd372c..3c25646f 100644 --- a/generated/apache.php +++ b/generated/apache.php @@ -91,44 +91,6 @@ function apache_lookup_uri(string $filename): object } -/** - * Fetches all HTTP request headers from the current request. Works in the - * Apache, FastCGI, CLI, and FPM webservers. - * - * @return array An associative array of all the HTTP headers in the current request. - * @throws ApacheException - * - */ -function apache_request_headers(): array -{ - error_clear_last(); - $safeResult = \apache_request_headers(); - if ($safeResult === false) { - throw ApacheException::createFromPhpError(); - } - return $safeResult; -} - - -/** - * Fetch all HTTP response headers. Works in the - * Apache, FastCGI, CLI, and FPM webservers. - * - * @return array An array of all Apache response headers on success. - * @throws ApacheException - * - */ -function apache_response_headers(): array -{ - error_clear_last(); - $safeResult = \apache_response_headers(); - if ($safeResult === false) { - throw ApacheException::createFromPhpError(); - } - return $safeResult; -} - - /** * apache_setenv sets the value of the Apache * environment variable specified by @@ -150,28 +112,6 @@ function apache_setenv(string $variable, string $value, bool $walk_to_top = fals } -/** - * Fetches all HTTP headers from the current request. - * - * This function is an alias for apache_request_headers. - * Please read the apache_request_headers - * documentation for more information on how this function works. - * - * @return array An associative array of all the HTTP headers in the current request. - * @throws ApacheException - * - */ -function getallheaders(): array -{ - error_clear_last(); - $safeResult = \getallheaders(); - if ($safeResult === false) { - throw ApacheException::createFromPhpError(); - } - return $safeResult; -} - - /** * virtual is an Apache-specific function which * is similar to <!--#include virtual...--> in diff --git a/generated/curl.php b/generated/curl.php index 935f8b26..5a9591c2 100644 --- a/generated/curl.php +++ b/generated/curl.php @@ -219,6 +219,11 @@ function curl_exec(\CurlHandle $handle) * * * + * + * "posttransfer_time_us" (Available as of PHP 8.4.0 and cURL 8.10.0) + * + * + * * Note that private data is not included in the associative array and must be retrieved individually with the CURLINFO_PRIVATE option. * @throws CurlException * diff --git a/generated/functionsList.php b/generated/functionsList.php index 796c7915..a9ec48ea 100644 --- a/generated/functionsList.php +++ b/generated/functionsList.php @@ -4,8 +4,6 @@ 'apache_getenv', 'apache_get_version', 'apache_lookup_uri', - 'apache_request_headers', - 'apache_response_headers', 'apache_setenv', 'apcu_cache_info', 'apcu_cas', @@ -224,7 +222,6 @@ 'ftp_systype', 'ftruncate', 'fwrite', - 'getallheaders', 'getcwd', 'gethostname', 'getimagesize', diff --git a/rector-migrate.php b/rector-migrate.php index 9d4da6a8..a2b04a3d 100644 --- a/rector-migrate.php +++ b/rector-migrate.php @@ -11,8 +11,6 @@ RenameFunctionRector::class,[ 'apache_getenv' => 'Safe\apache_getenv', 'apache_get_version' => 'Safe\apache_get_version', 'apache_lookup_uri' => 'Safe\apache_lookup_uri', - 'apache_request_headers' => 'Safe\apache_request_headers', - 'apache_response_headers' => 'Safe\apache_response_headers', 'apache_setenv' => 'Safe\apache_setenv', 'apcu_cache_info' => 'Safe\apcu_cache_info', 'apcu_cas' => 'Safe\apcu_cas', @@ -231,7 +229,6 @@ 'ftp_systype' => 'Safe\ftp_systype', 'ftruncate' => 'Safe\ftruncate', 'fwrite' => 'Safe\fwrite', - 'getallheaders' => 'Safe\getallheaders', 'getcwd' => 'Safe\getcwd', 'gethostname' => 'Safe\gethostname', 'getimagesize' => 'Safe\getimagesize',