Skip to content

Commit 3484e86

Browse files
committed
Regenerating doc.
Note: BC break... some functions have 2 signatures in PHP 7.3.
1 parent af2d0ec commit 3484e86

File tree

6 files changed

+1
-116
lines changed

6 files changed

+1
-116
lines changed

generated/functionsList.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@
542542
'header_register_callback',
543543
'inet_ntop',
544544
'openlog',
545-
'setrawcookie',
546545
'syslog',
547546
'oci_bind_array_by_name',
548547
'oci_bind_by_name',
@@ -874,7 +873,6 @@
874873
'session_regenerate_id',
875874
'session_register',
876875
'session_reset',
877-
'session_set_cookie_params',
878876
'session_unregister',
879877
'session_unset',
880878
'session_write_close',
@@ -1007,7 +1005,6 @@
10071005
'uopz_extend',
10081006
'uopz_implement',
10091007
'base64_decode',
1010-
'base64_encode',
10111008
'get_headers',
10121009
'import_request_variables',
10131010
'settype',

generated/network.php

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -478,45 +478,6 @@ function openlog(string $ident, int $option, int $facility): void
478478
}
479479

480480

481-
/**
482-
* setrawcookie is exactly the same as
483-
* setcookie except that the cookie value will not be
484-
* automatically urlencoded when sent to the browser.
485-
*
486-
* @param string $name
487-
* @param string $value
488-
* @param int $expire
489-
* @param string $path
490-
* @param string $domain
491-
* @param bool $secure
492-
* @param bool $httponly
493-
* @throws NetworkException
494-
*
495-
*/
496-
function setrawcookie(string $name, string $value = null, int $expire = 0, string $path = null, string $domain = null, bool $secure = false, bool $httponly = false): void
497-
{
498-
error_clear_last();
499-
if ($httponly !== false) {
500-
$result = \setrawcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
501-
} elseif ($secure !== false) {
502-
$result = \setrawcookie($name, $value, $expire, $path, $domain, $secure);
503-
} elseif ($domain !== null) {
504-
$result = \setrawcookie($name, $value, $expire, $path, $domain);
505-
} elseif ($path !== null) {
506-
$result = \setrawcookie($name, $value, $expire, $path);
507-
} elseif ($expire !== 0) {
508-
$result = \setrawcookie($name, $value, $expire);
509-
} elseif ($value !== null) {
510-
$result = \setrawcookie($name, $value);
511-
} else {
512-
$result = \setrawcookie($name);
513-
}
514-
if ($result === false) {
515-
throw NetworkException::createFromPhpError();
516-
}
517-
}
518-
519-
520481
/**
521482
* syslog generates a log message that will be
522483
* distributed by the system logger.

generated/session.php

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -153,51 +153,6 @@ function session_reset(): void
153153
}
154154

155155

156-
/**
157-
* Set cookie parameters defined in the php.ini file. The effect of this
158-
* function only lasts for the duration of the script. Thus, you need to
159-
* call session_set_cookie_params for every request and
160-
* before session_start is called.
161-
*
162-
* This function updates the runtime ini values of the corresponding PHP ini configuration
163-
* keys which can be retrieved with the ini_get.
164-
*
165-
* @param int $lifetime Lifetime of the
166-
* session cookie, defined in seconds.
167-
* @param string $path Path on the domain where
168-
* the cookie will work. Use a single slash ('/') for all paths on the
169-
* domain.
170-
* @param string|null $domain Cookie domain, for
171-
* example 'www.php.net'. To make cookies visible on all subdomains then
172-
* the domain must be prefixed with a dot like '.php.net'.
173-
* @param bool $secure If TRUE cookie will only be sent over
174-
* secure connections.
175-
* @param bool $httponly If set to TRUE then PHP will attempt to send the
176-
* httponly
177-
* flag when setting the session cookie.
178-
* @throws SessionException
179-
*
180-
*/
181-
function session_set_cookie_params(int $lifetime, string $path = null, string $domain = null, bool $secure = false, bool $httponly = false): void
182-
{
183-
error_clear_last();
184-
if ($httponly !== false) {
185-
$result = \session_set_cookie_params($lifetime, $path, $domain, $secure, $httponly);
186-
} elseif ($secure !== false) {
187-
$result = \session_set_cookie_params($lifetime, $path, $domain, $secure);
188-
} elseif ($domain !== null) {
189-
$result = \session_set_cookie_params($lifetime, $path, $domain);
190-
} elseif ($path !== null) {
191-
$result = \session_set_cookie_params($lifetime, $path);
192-
} else {
193-
$result = \session_set_cookie_params($lifetime);
194-
}
195-
if ($result === false) {
196-
throw SessionException::createFromPhpError();
197-
}
198-
}
199-
200-
201156
/**
202157
* session_unregister unregisters the global variable
203158
* named name from the current session.

generated/shmop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function shmop_delete($shmid): void
2929
* shmop_open
3030
* @param int $start Offset from which to start reading
3131
* @param int $count The number of bytes to read.
32-
* 0 reads shmop_size($shmId) - $offset bytes.
32+
* 0 reads shmop_size($shmid) - $start bytes.
3333
* @return string Returns the data .
3434
* @throws ShmopException
3535
*

generated/url.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,6 @@ function base64_decode(string $data, bool $strict = false): string
2828
}
2929

3030

31-
/**
32-
* Encodes the given data with base64.
33-
*
34-
* This encoding is designed to make binary data survive transport through
35-
* transport layers that are not 8-bit clean, such as mail bodies.
36-
*
37-
* Base64-encoded data takes about 33% more space than the original
38-
* data.
39-
*
40-
* @param string $data The data to encode.
41-
* @return string The encoded data, as a string .
42-
* @throws UrlException
43-
*
44-
*/
45-
function base64_encode(string $data): string
46-
{
47-
error_clear_last();
48-
$result = \base64_encode($data);
49-
if ($result === false) {
50-
throw UrlException::createFromPhpError();
51-
}
52-
return $result;
53-
}
54-
55-
5631
/**
5732
* get_headers returns an array with the headers sent
5833
* by the server in response to a HTTP request.

rector-migrate.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ services:
543543
header_register_callback: 'Safe\header_register_callback'
544544
inet_ntop: 'Safe\inet_ntop'
545545
openlog: 'Safe\openlog'
546-
setrawcookie: 'Safe\setrawcookie'
547546
syslog: 'Safe\syslog'
548547
oci_bind_array_by_name: 'Safe\oci_bind_array_by_name'
549548
oci_bind_by_name: 'Safe\oci_bind_by_name'
@@ -875,7 +874,6 @@ services:
875874
session_regenerate_id: 'Safe\session_regenerate_id'
876875
session_register: 'Safe\session_register'
877876
session_reset: 'Safe\session_reset'
878-
session_set_cookie_params: 'Safe\session_set_cookie_params'
879877
session_unregister: 'Safe\session_unregister'
880878
session_unset: 'Safe\session_unset'
881879
session_write_close: 'Safe\session_write_close'
@@ -1008,7 +1006,6 @@ services:
10081006
uopz_extend: 'Safe\uopz_extend'
10091007
uopz_implement: 'Safe\uopz_implement'
10101008
base64_decode: 'Safe\base64_decode'
1011-
base64_encode: 'Safe\base64_encode'
10121009
get_headers: 'Safe\get_headers'
10131010
import_request_variables: 'Safe\import_request_variables'
10141011
settype: 'Safe\settype'

0 commit comments

Comments
 (0)