@@ -741,7 +741,7 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
741
741
* break, you need to use the correct line-ending character(s) for your
742
742
* operating system. Unix based systems use \n as the
743
743
* 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
745
745
* \r as the line ending character.
746
746
*
747
747
* 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
756
756
* 'b' or 't' as the last character
757
757
* of the mode parameter.
758
758
*
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'
762
761
* mode if you are working with plain-text files and you use
763
762
* \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
765
764
* should use the 'b' in all other cases.
766
765
*
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
768
767
* may experience strange problems with your data, including broken image
769
768
* files and strange problems with \r\n characters.
770
769
*
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
775
771
* you re-write code that uses or relies upon the 't'
776
772
* mode so that it uses the correct line endings and
777
773
* 'b' mode instead.
0 commit comments