Skip to content

Commit

Permalink
Automatically regenerate the files
Browse files Browse the repository at this point in the history
  • Loading branch information
josefsabl authored Jul 5, 2022
1 parent 9c24e8e commit b489773
Show file tree
Hide file tree
Showing 95 changed files with 19,302 additions and 18,124 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class PdfException extends \ErrorException implements SafeExceptionInterface
class DomException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class MysqliException extends \ErrorException implements SafeExceptionInterface
class GettextException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
11 changes: 0 additions & 11 deletions generated/Exceptions/IngresiiException.php

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class MsqlException extends \ErrorException implements SafeExceptionInterface
class StatsException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
106 changes: 65 additions & 41 deletions generated/apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

/**
* Fetch the Apache version.
*
*
* @return string Returns the Apache version on success.
* @throws ApacheException
*
*
*/
function apache_get_version(): string
{
Expand All @@ -23,16 +23,14 @@ function apache_get_version(): string


/**
* Retrieve an Apache environment variable specified by
* 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
* @throws ApacheException
*
*
*/
function apache_getenv(string $variable, bool $walk_to_top = false): string
{
Expand All @@ -46,18 +44,46 @@ function apache_getenv(string $variable, bool $walk_to_top = false): string


/**
* Fetches all HTTP request headers from the current request. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
* in Netscape/iPlanet/SunONE webservers.
*
* @return array An associative array of all the HTTP headers in the current request.
* 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_request_headers(): array
function apache_lookup_uri(string $filename): object
{
error_clear_last();
$result = \apache_request_headers();
$result = \apache_lookup_uri($filename);
if ($result === false) {
throw ApacheException::createFromPhpError();
}
Expand All @@ -66,35 +92,31 @@ function apache_request_headers(): array


/**
* apache_reset_timeout resets the Apache write timer,
* which defaults to 300 seconds. With set_time_limit(0);
* ignore_user_abort(true) and periodic
* apache_reset_timeout calls, Apache can theoretically
* run forever.
*
* This function requires Apache 1.
*
* 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_reset_timeout(): void
function apache_request_headers(): array
{
error_clear_last();
$result = \apache_reset_timeout();
$result = \apache_request_headers();
if ($result === false) {
throw ApacheException::createFromPhpError();
}
return $result;
}


/**
* Fetch all HTTP response headers. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
* in Netscape/iPlanet/SunONE webservers.
*
* Apache, FastCGI, CLI, and FPM webservers.
*
* @return array An array of all Apache response headers on success.
* @throws ApacheException
*
*
*/
function apache_response_headers(): array
{
Expand All @@ -111,12 +133,12 @@ function apache_response_headers(): array
* apache_setenv sets the value of the Apache
* environment variable specified by
* variable.
*
*
* @param string $variable The environment variable that's being set.
* @param string $value The new variable value.
* @param bool $walk_to_top Whether to set the top-level variable available to all Apache layers.
* @throws ApacheException
*
*
*/
function apache_setenv(string $variable, string $value, bool $walk_to_top = false): void
{
Expand All @@ -130,14 +152,14 @@ 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
{
Expand All @@ -159,19 +181,21 @@ function getallheaders(): array
* parse through Apache. Note that for a CGI script, the script
* must generate valid CGI headers. At the minimum that means it
* must generate a Content-Type header.
*
*
* 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();
}
}


26 changes: 14 additions & 12 deletions generated/apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

/**
* Retrieves cached information and meta-data from APC's data store.
*
*
* @param bool $limited If limited is TRUE, the
* return value will exclude the individual list of cache entries. This
* is useful when trying to optimize calls for statistics gathering.
* @return array Array of cached data (and meta-data)
* @throws ApcuException
*
*
*/
function apcu_cache_info(bool $limited = false): array
{
Expand All @@ -26,15 +26,15 @@ function apcu_cache_info(bool $limited = false): array


/**
* apcu_cas updates an already existing integer value if the
* old parameter matches the currently stored value
* apcu_cas updates an already existing integer value if the
* old parameter matches the currently stored value
* with the value of the new parameter.
*
*
* @param string $key The key of the value being updated.
* @param int $old The old value (the value currently stored).
* @param int $new The new value to update to.
* @throws ApcuException
*
*
*/
function apcu_cas(string $key, int $old, int $new): void
{
Expand All @@ -48,15 +48,15 @@ function apcu_cas(string $key, int $old, int $new): void

/**
* Decreases a stored integer value.
*
*
* @param string $key The key of the value being decreased.
* @param int $step The step, or value to decrease.
* @param bool|null $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @param int $ttl TTL to use if the operation inserts a new value (rather than decrementing an existing one).
* @return int Returns the current value of key's value on success
* @throws ApcuException
*
*
*/
function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int
{
Expand All @@ -71,15 +71,15 @@ function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl =

/**
* Increases a stored number.
*
*
* @param string $key The key of the value being increased.
* @param int $step The step, or value to increase.
* @param bool|null $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @param int $ttl TTL to use if the operation inserts a new value (rather than incrementing an existing one).
* @return int Returns the current value of key's value on success
* @throws ApcuException
*
*
*/
function apcu_inc(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int
{
Expand All @@ -94,12 +94,12 @@ function apcu_inc(string $key, int $step = 1, ?bool &$success = null, int $ttl =

/**
* Retrieves APCu Shared Memory Allocation information.
*
*
* @param bool $limited When set to FALSE (default) apcu_sma_info will
* return a detailed information about each segment.
* @return array Array of Shared Memory Allocation data; FALSE on failure.
* @throws ApcuException
*
*
*/
function apcu_sma_info(bool $limited = false): array
{
Expand All @@ -110,3 +110,5 @@ function apcu_sma_info(bool $limited = false): array
}
return $result;
}


Loading

0 comments on commit b489773

Please sign in to comment.