Skip to content

Commit

Permalink
Automatically regenerate the files
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Nov 18, 2024
1 parent 3a3d6ad commit eb514b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 66 deletions.
60 changes: 0 additions & 60 deletions generated/apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions generated/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 0 additions & 3 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -224,7 +222,6 @@
'ftp_systype',
'ftruncate',
'fwrite',
'getallheaders',
'getcwd',
'gethostname',
'getimagesize',
Expand Down
3 changes: 0 additions & 3 deletions rector-migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit eb514b8

Please sign in to comment.