@@ -741,7 +741,7 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
741741 * break, you need to use the correct line-ending character(s) for your
742742 * operating system. Unix based systems use \n as the
743743 * line ending character, Windows based systems use \r\n
744- * as the line ending characters and Macintosh based systems use
744+ * as the line ending characters and Macintosh based systems (Mac OS Classic) used
745745 * \r as the line ending character.
746746 *
747747 * If you use the wrong line ending characters when writing your files, you
@@ -756,22 +756,18 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
756756 * 'b' or 't' as the last character
757757 * of the mode parameter.
758758 *
759- * The default translation mode depends on the SAPI and version of PHP that
760- * you are using, so you are encouraged to always specify the appropriate
761- * flag for portability reasons. You should use the 't'
759+ * The default translation mode is 'b'.
760+ * You can use the 't'
762761 * mode if you are working with plain-text files and you use
763762 * \n to delimit your line endings in your script, but
764- * expect your files to be readable with applications such as notepad. You
763+ * expect your files to be readable with applications such as old versions of notepad. You
765764 * should use the 'b' in all other cases.
766765 *
767- * If you do not specify the 'b ' flag when working with binary files, you
766+ * If you specify the 't ' flag when working with binary files, you
768767 * may experience strange problems with your data, including broken image
769768 * files and strange problems with \r\n characters.
770769 *
771- * For portability, it is strongly recommended that you always
772- * use the 'b' flag when opening files with fopen.
773- *
774- * Again, for portability, it is also strongly recommended that
770+ * For portability, it is also strongly recommended that
775771 * you re-write code that uses or relies upon the 't'
776772 * mode so that it uses the correct line endings and
777773 * 'b' mode instead.
0 commit comments