diff --git a/generated/functionsList.php b/generated/functionsList.php index 6ecaa3c4..e14d7a57 100644 --- a/generated/functionsList.php +++ b/generated/functionsList.php @@ -542,7 +542,6 @@ 'header_register_callback', 'inet_ntop', 'openlog', - 'setrawcookie', 'syslog', 'oci_bind_array_by_name', 'oci_bind_by_name', @@ -874,7 +873,6 @@ 'session_regenerate_id', 'session_register', 'session_reset', - 'session_set_cookie_params', 'session_unregister', 'session_unset', 'session_write_close', @@ -1007,7 +1005,6 @@ 'uopz_extend', 'uopz_implement', 'base64_decode', - 'base64_encode', 'get_headers', 'import_request_variables', 'settype', diff --git a/generated/network.php b/generated/network.php index 8c20736e..67f709ec 100644 --- a/generated/network.php +++ b/generated/network.php @@ -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. diff --git a/generated/session.php b/generated/session.php index 9e84d68a..87e5b0b1 100644 --- a/generated/session.php +++ b/generated/session.php @@ -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. diff --git a/generated/shmop.php b/generated/shmop.php index cec7215c..70edec16 100644 --- a/generated/shmop.php +++ b/generated/shmop.php @@ -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 * diff --git a/generated/url.php b/generated/url.php index a3a968d3..626ad8b5 100644 --- a/generated/url.php +++ b/generated/url.php @@ -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. diff --git a/rector-migrate.yml b/rector-migrate.yml index f1840abe..bde4c848 100644 --- a/rector-migrate.yml +++ b/rector-migrate.yml @@ -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' @@ -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' @@ -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'