Skip to content

Commit 1514c20

Browse files
authored
Automatically regenerate the files
1 parent f7cb980 commit 1514c20

File tree

5 files changed

+126
-7
lines changed

5 files changed

+126
-7
lines changed

generated/filesystem.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 1 addition & 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',

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: 118 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.

rector-migrate-0.7.php

Lines changed: 1 addition & 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',

0 commit comments

Comments
 (0)