note 101963 added to function.fgets
| From: | hgs at cs dot columbia dot edu | Date: | Thu, 20 Jan 2011 12:42:49 +0000 |
| Subject: | note 101963 added to function.fgets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175929@lists.php.net to get a copy of this message | ||
There seems to be an interaction between sockets and the auto_detect_line_endings setting that can
cause rather peculiar behavior. Apparently, if the first line read from a socket is split across two
TCP packets, the detector will look at the first TCP packet and determine that the system uses MacOS
(\r) line endings, even though the LF is contained in the next packet. For example, this affected
the PEAR Net_SMTP package, which would fail mysteriously for only some email servers.
----
Server IP: 69.147.83.197
Probable Submitter: 71.191.233.89
----
Manual Page -- http://www.php.net/manual/en/function.fgets.php
Edit -- https://master.php.net/note/edit/101963
Del: integrated -- https://master.php.net/note/delete/101963/integrated
Del: useless -- https://master.php.net/note/delete/101963/useless
Del: bad code -- https://master.php.net/note/delete/101963/bad+code
Del: spam -- https://master.php.net/note/delete/101963/spam
Del: non-english -- https://master.php.net/note/delete/101963/non-english
Del: in docs -- https://master.php.net/note/delete/101963/in+docs
Del: other reasons-- https://master.php.net/note/delete/101963
Reject -- https://master.php.net/note/reject/101963
Search -- https://master.php.net/manage/user-notes.php