Skip to content

Commit

Permalink
Regenerating doc.
Browse files Browse the repository at this point in the history
Note: BC break... some functions have 2 signatures in PHP 7.3.
  • Loading branch information
moufmouf committed Sep 24, 2018
1 parent af2d0ec commit 3484e86
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 116 deletions.
3 changes: 0 additions & 3 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@
'header_register_callback',
'inet_ntop',
'openlog',
'setrawcookie',
'syslog',
'oci_bind_array_by_name',
'oci_bind_by_name',
Expand Down Expand Up @@ -874,7 +873,6 @@
'session_regenerate_id',
'session_register',
'session_reset',
'session_set_cookie_params',
'session_unregister',
'session_unset',
'session_write_close',
Expand Down Expand Up @@ -1007,7 +1005,6 @@
'uopz_extend',
'uopz_implement',
'base64_decode',
'base64_encode',
'get_headers',
'import_request_variables',
'settype',
Expand Down
39 changes: 0 additions & 39 deletions generated/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,45 +478,6 @@ function openlog(string $ident, int $option, int $facility): void
}


/**
* setrawcookie is exactly the same as
* setcookie except that the cookie value will not be
* automatically urlencoded when sent to the browser.
*
* @param string $name
* @param string $value
* @param int $expire
* @param string $path
* @param string $domain
* @param bool $secure
* @param bool $httponly
* @throws NetworkException
*
*/
function setrawcookie(string $name, string $value = null, int $expire = 0, string $path = null, string $domain = null, bool $secure = false, bool $httponly = false): void
{
error_clear_last();
if ($httponly !== false) {
$result = \setrawcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
} elseif ($secure !== false) {
$result = \setrawcookie($name, $value, $expire, $path, $domain, $secure);
} elseif ($domain !== null) {
$result = \setrawcookie($name, $value, $expire, $path, $domain);
} elseif ($path !== null) {
$result = \setrawcookie($name, $value, $expire, $path);
} elseif ($expire !== 0) {
$result = \setrawcookie($name, $value, $expire);
} elseif ($value !== null) {
$result = \setrawcookie($name, $value);
} else {
$result = \setrawcookie($name);
}
if ($result === false) {
throw NetworkException::createFromPhpError();
}
}


/**
* syslog generates a log message that will be
* distributed by the system logger.
Expand Down
45 changes: 0 additions & 45 deletions generated/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,51 +153,6 @@ function session_reset(): void
}


/**
* Set cookie parameters defined in the php.ini file. The effect of this
* function only lasts for the duration of the script. Thus, you need to
* call session_set_cookie_params for every request and
* before session_start is called.
*
* This function updates the runtime ini values of the corresponding PHP ini configuration
* keys which can be retrieved with the ini_get.
*
* @param int $lifetime Lifetime of the
* session cookie, defined in seconds.
* @param string $path Path on the domain where
* the cookie will work. Use a single slash ('/') for all paths on the
* domain.
* @param string|null $domain Cookie domain, for
* example 'www.php.net'. To make cookies visible on all subdomains then
* the domain must be prefixed with a dot like '.php.net'.
* @param bool $secure If TRUE cookie will only be sent over
* secure connections.
* @param bool $httponly If set to TRUE then PHP will attempt to send the
* httponly
* flag when setting the session cookie.
* @throws SessionException
*
*/
function session_set_cookie_params(int $lifetime, string $path = null, string $domain = null, bool $secure = false, bool $httponly = false): void
{
error_clear_last();
if ($httponly !== false) {
$result = \session_set_cookie_params($lifetime, $path, $domain, $secure, $httponly);
} elseif ($secure !== false) {
$result = \session_set_cookie_params($lifetime, $path, $domain, $secure);
} elseif ($domain !== null) {
$result = \session_set_cookie_params($lifetime, $path, $domain);
} elseif ($path !== null) {
$result = \session_set_cookie_params($lifetime, $path);
} else {
$result = \session_set_cookie_params($lifetime);
}
if ($result === false) {
throw SessionException::createFromPhpError();
}
}


/**
* session_unregister unregisters the global variable
* named name from the current session.
Expand Down
2 changes: 1 addition & 1 deletion generated/shmop.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function shmop_delete($shmid): void
* shmop_open
* @param int $start Offset from which to start reading
* @param int $count The number of bytes to read.
* 0 reads shmop_size($shmId) - $offset bytes.
* 0 reads shmop_size($shmid) - $start bytes.
* @return string Returns the data .
* @throws ShmopException
*
Expand Down
25 changes: 0 additions & 25 deletions generated/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@ function base64_decode(string $data, bool $strict = false): string
}


/**
* Encodes the given data with base64.
*
* This encoding is designed to make binary data survive transport through
* transport layers that are not 8-bit clean, such as mail bodies.
*
* Base64-encoded data takes about 33% more space than the original
* data.
*
* @param string $data The data to encode.
* @return string The encoded data, as a string .
* @throws UrlException
*
*/
function base64_encode(string $data): string
{
error_clear_last();
$result = \base64_encode($data);
if ($result === false) {
throw UrlException::createFromPhpError();
}
return $result;
}


/**
* get_headers returns an array with the headers sent
* by the server in response to a HTTP request.
Expand Down
3 changes: 0 additions & 3 deletions rector-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ services:
header_register_callback: 'Safe\header_register_callback'
inet_ntop: 'Safe\inet_ntop'
openlog: 'Safe\openlog'
setrawcookie: 'Safe\setrawcookie'
syslog: 'Safe\syslog'
oci_bind_array_by_name: 'Safe\oci_bind_array_by_name'
oci_bind_by_name: 'Safe\oci_bind_by_name'
Expand Down Expand Up @@ -875,7 +874,6 @@ services:
session_regenerate_id: 'Safe\session_regenerate_id'
session_register: 'Safe\session_register'
session_reset: 'Safe\session_reset'
session_set_cookie_params: 'Safe\session_set_cookie_params'
session_unregister: 'Safe\session_unregister'
session_unset: 'Safe\session_unset'
session_write_close: 'Safe\session_write_close'
Expand Down Expand Up @@ -1008,7 +1006,6 @@ services:
uopz_extend: 'Safe\uopz_extend'
uopz_implement: 'Safe\uopz_implement'
base64_decode: 'Safe\base64_decode'
base64_encode: 'Safe\base64_encode'
get_headers: 'Safe\get_headers'
import_request_variables: 'Safe\import_request_variables'
settype: 'Safe\settype'
Expand Down

0 comments on commit 3484e86

Please sign in to comment.