Skip to content

Commit 0b91d64

Browse files
authored
Automatically regenerate the files
1 parent f7cb980 commit 0b91d64

File tree

6 files changed

+207
-24
lines changed

6 files changed

+207
-24
lines changed

generated/filesystem.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,8 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
595595
* a local file, then it will try to open a stream on that file.
596596
* The file must be accessible to PHP, so you need to ensure that
597597
* the file access permissions allow this access.
598-
* If you have enabled safe mode
599-
* or open_basedir further
598+
* If you have enabled
599+
* open_basedir further
600600
* restrictions may apply.
601601
*
602602
* If PHP has decided that filename specifies
@@ -1135,7 +1135,9 @@ function mkdir(string $pathname, int $mode = 0777, bool $recursive = false, $con
11351135
*
11361136
* The structure of the ini file is the same as the php.ini's.
11371137
*
1138-
* @param string $filename The filename of the ini file being parsed.
1138+
* @param string $filename The filename of the ini file being parsed. If a relative path is used,
1139+
* it is evaluated relative to the current working directory, then the
1140+
* include_path.
11391141
* @param bool $process_sections By setting the process_sections
11401142
* parameter to TRUE, you get a multidimensional array, with
11411143
* the section names and settings included. The default

generated/functionsList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@
336336
'imap_headerinfo',
337337
'imap_mail',
338338
'imap_mailboxmsginfo',
339+
'imap_mail_compose',
339340
'imap_mail_copy',
340341
'imap_mail_move',
341342
'imap_mutf7_to_utf8',
@@ -346,6 +347,7 @@
346347
'imap_setacl',
347348
'imap_setflag_full',
348349
'imap_set_quota',
350+
'imap_sort',
349351
'imap_subscribe',
350352
'imap_thread',
351353
'imap_timeout',

generated/image.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,15 +1904,15 @@ function imagerectangle($image, int $x1, int $y1, int $x2, int $y2, int $color):
19041904
* @param float $angle Rotation angle, in degrees. The rotation angle is interpreted as the
19051905
* number of degrees to rotate the image anticlockwise.
19061906
* @param int $bgd_color Specifies the color of the uncovered zone after the rotation
1907-
* @param int $ignore_transparent If set and non-zero, transparent colors are ignored (otherwise kept).
1907+
* @param int $dummy This parameter is unused.
19081908
* @return resource Returns an image resource for the rotated image.
19091909
* @throws ImageException
19101910
*
19111911
*/
1912-
function imagerotate($image, float $angle, int $bgd_color, int $ignore_transparent = 0)
1912+
function imagerotate($image, float $angle, int $bgd_color, int $dummy = 0)
19131913
{
19141914
error_clear_last();
1915-
$result = \imagerotate($image, $angle, $bgd_color, $ignore_transparent);
1915+
$result = \imagerotate($image, $angle, $bgd_color, $dummy);
19161916
if ($result === false) {
19171917
throw ImageException::createFromPhpError();
19181918
}
@@ -1953,9 +1953,6 @@ function imagesavealpha($image, bool $saveflag): void
19531953
* @param int $new_width The width to scale the image to.
19541954
* @param int $new_height The height to scale the image to. If omitted or negative, the aspect
19551955
* ratio will be preserved.
1956-
*
1957-
* You should always provide the height if using PHP 5.5.18 or earlier, or
1958-
* PHP 5.6.2 or earlier, as the aspect ratio calculation was incorrect.
19591956
* @param int $mode One of IMG_NEAREST_NEIGHBOUR,
19601957
* IMG_BILINEAR_FIXED,
19611958
* IMG_BICUBIC,

generated/imap.php

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,124 @@ function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int
578578
}
579579

580580

581+
/**
582+
* Create a MIME message based on the given envelope
583+
* and body sections.
584+
*
585+
* @param array $envelope An associative array of header fields. Valid keys are: "remail",
586+
* "return_path", "date", "from", "reply_to", "in_reply_to", "subject",
587+
* "to", "cc", "bcc" and "message_id", which set the respective message headers to the given string.
588+
* To set additional headers, the key "custom_headers" is supported, which expects
589+
* an array of those headers, e.g. ["User-Agent: My Mail Client"].
590+
* @param array $body An indexed array of bodies. The first body is the main body of the message;
591+
* only if it has a type of TYPEMULTIPART, further bodies
592+
* are processed; these bodies constitute the bodies of the parts.
593+
*
594+
*
595+
* Body Array Structure
596+
*
597+
*
598+
*
599+
* Key
600+
* Type
601+
* Description
602+
*
603+
*
604+
*
605+
*
606+
* type
607+
* int
608+
*
609+
* The MIME type.
610+
* One of TYPETEXT (default), TYPEMULTIPART,
611+
* TYPEMESSAGE, TYPEAPPLICATION,
612+
* TYPEAUDIO, TYPEIMAGE,
613+
* TYPEMODEL or TYPEOTHER.
614+
*
615+
*
616+
*
617+
* encoding
618+
* int
619+
*
620+
* The Content-Transfer-Encoding.
621+
* One of ENC7BIT (default), ENC8BIT,
622+
* ENCBINARY, ENCBASE64,
623+
* ENCQUOTEDPRINTABLE or ENCOTHER.
624+
*
625+
*
626+
*
627+
* charset
628+
* string
629+
* The charset parameter of the MIME type.
630+
*
631+
*
632+
* type.parameters
633+
* array
634+
* An associative array of Content-Type parameter names and their values.
635+
*
636+
*
637+
* subtype
638+
* string
639+
* The MIME subtype, e.g. 'jpeg' for TYPEIMAGE.
640+
*
641+
*
642+
* id
643+
* string
644+
* The Content-ID.
645+
*
646+
*
647+
* description
648+
* string
649+
* The Content-Description.
650+
*
651+
*
652+
* disposition.type
653+
* string
654+
* The Content-Disposition, e.g. 'attachment'.
655+
*
656+
*
657+
* disposition
658+
* array
659+
* An associative array of Content-Disposition parameter names and values.
660+
*
661+
*
662+
* contents.data
663+
* string
664+
* The payload.
665+
*
666+
*
667+
* lines
668+
* int
669+
* The size of the payload in lines.
670+
*
671+
*
672+
* bytes
673+
* int
674+
* The size of the payload in bytes.
675+
*
676+
*
677+
* md5
678+
* string
679+
* The MD5 checksum of the payload.
680+
*
681+
*
682+
*
683+
*
684+
* @return string Returns the MIME message as string.
685+
* @throws ImapException
686+
*
687+
*/
688+
function imap_mail_compose(array $envelope, array $body): string
689+
{
690+
error_clear_last();
691+
$result = \imap_mail_compose($envelope, $body);
692+
if ($result === false) {
693+
throw ImapException::createFromPhpError();
694+
}
695+
return $result;
696+
}
697+
698+
581699
/**
582700
* Copies mail messages specified by msglist
583701
* to specified mailbox.
@@ -1141,6 +1259,83 @@ function imap_setflag_full($imap_stream, string $sequence, string $flag, int $op
11411259
}
11421260

11431261

1262+
/**
1263+
* Gets and sorts message numbers by the given parameters.
1264+
*
1265+
* @param resource $imap_stream An IMAP stream returned by
1266+
* imap_open.
1267+
* @param int $criteria Criteria can be one (and only one) of the following:
1268+
*
1269+
*
1270+
*
1271+
* SORTDATE - message Date
1272+
*
1273+
*
1274+
*
1275+
*
1276+
* SORTARRIVAL - arrival date
1277+
*
1278+
*
1279+
*
1280+
*
1281+
* SORTFROM - mailbox in first From address
1282+
*
1283+
*
1284+
*
1285+
*
1286+
* SORTSUBJECT - message subject
1287+
*
1288+
*
1289+
*
1290+
*
1291+
* SORTTO - mailbox in first To address
1292+
*
1293+
*
1294+
*
1295+
*
1296+
* SORTCC - mailbox in first cc address
1297+
*
1298+
*
1299+
*
1300+
*
1301+
* SORTSIZE - size of message in octets
1302+
*
1303+
*
1304+
*
1305+
* @param int $reverse Set this to 1 for reverse sorting
1306+
* @param int $options The options are a bitmask of one or more of the
1307+
* following:
1308+
*
1309+
*
1310+
*
1311+
* SE_UID - Return UIDs instead of sequence numbers
1312+
*
1313+
*
1314+
*
1315+
*
1316+
* SE_NOPREFETCH - Don't prefetch searched messages
1317+
*
1318+
*
1319+
*
1320+
* @param string $search_criteria IMAP2-format search criteria string. For details see
1321+
* imap_search.
1322+
* @param string $charset MIME character set to use when sorting strings.
1323+
* @return array Returns an array of message numbers sorted by the given
1324+
* parameters.
1325+
* @throws ImapException
1326+
*
1327+
*/
1328+
function imap_sort($imap_stream, int $criteria, int $reverse, int $options = 0, string $search_criteria = null, string $charset = null): array
1329+
{
1330+
error_clear_last();
1331+
$result = \imap_sort($imap_stream, $criteria, $reverse, $options, $search_criteria, $charset);
1332+
if ($result === false) {
1333+
throw ImapException::createFromPhpError();
1334+
}
1335+
return $result;
1336+
}
1337+
1338+
11441339
/**
11451340
* Subscribe to a new mailbox.
11461341
*

generated/info.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -449,21 +449,6 @@ function phpinfo(int $what = INFO_ALL): void
449449
* request. At the end of the request the environment is restored to its
450450
* original state.
451451
*
452-
* Setting certain environment variables may be a potential security breach.
453-
* The safe_mode_allowed_env_vars directive contains a
454-
* comma-delimited list of prefixes. In Safe Mode, the user may only alter
455-
* environment variables whose names begin with the prefixes supplied by
456-
* this directive. By default, users will only be able to set environment
457-
* variables that begin with PHP_ (e.g.
458-
* PHP_FOO=BAR). Note: if this directive is empty, PHP
459-
* will let the user modify ANY environment variable!
460-
*
461-
* The safe_mode_protected_env_vars directive contains a
462-
* comma-delimited list of environment variables, that the end user won't be
463-
* able to change using putenv. These variables will
464-
* be protected even if safe_mode_allowed_env_vars is set
465-
* to allow to change them.
466-
*
467452
* @param string $setting The setting, like "FOO=BAR"
468453
* @throws InfoException
469454
*

rector-migrate-0.7.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@
346346
'imap_headerinfo' => 'Safe\imap_headerinfo',
347347
'imap_mail' => 'Safe\imap_mail',
348348
'imap_mailboxmsginfo' => 'Safe\imap_mailboxmsginfo',
349+
'imap_mail_compose' => 'Safe\imap_mail_compose',
349350
'imap_mail_copy' => 'Safe\imap_mail_copy',
350351
'imap_mail_move' => 'Safe\imap_mail_move',
351352
'imap_mutf7_to_utf8' => 'Safe\imap_mutf7_to_utf8',
@@ -356,6 +357,7 @@
356357
'imap_setacl' => 'Safe\imap_setacl',
357358
'imap_setflag_full' => 'Safe\imap_setflag_full',
358359
'imap_set_quota' => 'Safe\imap_set_quota',
360+
'imap_sort' => 'Safe\imap_sort',
359361
'imap_subscribe' => 'Safe\imap_subscribe',
360362
'imap_thread' => 'Safe\imap_thread',
361363
'imap_timeout' => 'Safe\imap_timeout',

0 commit comments

Comments
 (0)