Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"generated/mailparse.php",
"generated/mbstring.php",
"generated/misc.php",
"generated/msql.php",
"generated/mysql.php",
"generated/mysqli.php",
"generated/mysqlndMs.php",
Expand All @@ -67,7 +66,6 @@
"generated/password.php",
"generated/pcntl.php",
"generated/pcre.php",
"generated/pdf.php",
"generated/pgsql.php",
"generated/posix.php",
"generated/ps.php",
Expand All @@ -80,7 +78,6 @@
"generated/shmop.php",
"generated/simplexml.php",
"generated/sockets.php",
"generated/sodium.php",
"generated/solr.php",
"generated/spl.php",
"generated/sqlsrv.php",
Expand Down
11 changes: 0 additions & 11 deletions generated/Exceptions/MsqlException.php

This file was deleted.

11 changes: 0 additions & 11 deletions generated/Exceptions/PdfException.php

This file was deleted.

11 changes: 0 additions & 11 deletions generated/Exceptions/SodiumException.php

This file was deleted.

56 changes: 51 additions & 5 deletions generated/apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ function apache_get_version(): string
* Retrieve an Apache environment variable specified by
* variable.
*
* This function requires Apache 2 otherwise it's undefined.
*
* @param string $variable The Apache environment variable
* @param bool $walk_to_top Whether to get the top-level variable available to all Apache layers.
* @return string The value of the Apache environment variable on success
Expand All @@ -45,6 +43,54 @@ function apache_getenv(string $variable, bool $walk_to_top = false): string
}


/**
* This performs a partial request for a URI. It goes just far
* enough to obtain all the important information about the given
* resource.
*
* @param string $filename The filename (URI) that's being requested.
* @return object An object of related URI information. The properties of
* this object are:
*
*
* status
* the_request
* status_line
* method
* content_type
* handler
* uri
* filename
* path_info
* args
* boundary
* no_cache
* no_local_copy
* allowed
* send_bodyct
* bytes_sent
* byterange
* clength
* unparsed_uri
* mtime
* request_time
*
*
* Returns FALSE on failure.
* @throws ApacheException
*
*/
function apache_lookup_uri(string $filename): object
{
error_clear_last();
$result = \apache_lookup_uri($filename);
if ($result === false) {
throw ApacheException::createFromPhpError();
}
return $result;
}


/**
* Fetches all HTTP request headers from the current request. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
Expand Down Expand Up @@ -163,14 +209,14 @@ function getallheaders(): array
* To run the sub-request, all buffers are terminated and flushed to the
* browser, pending headers are sent too.
*
* @param string $filename The file that the virtual command will be performed on.
* @param string $uri The file that the virtual command will be performed on.
* @throws ApacheException
*
*/
function virtual(string $filename): void
function virtual(string $uri): void
{
error_clear_last();
$result = \virtual($filename);
$result = \virtual($uri);
if ($result === false) {
throw ApacheException::createFromPhpError();
}
Expand Down
Loading