Re: RE: PHP 4.0 Bug #3601 Updated: fgets is NOT binary safe.
| From: | Stanislav Malyshev | Date: | Tue, 31 Oct 2000 08:48:32 +0000 |
| Subject: | Re: RE: PHP 4.0 Bug #3601 Updated: fgets is NOT binary safe. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36515@lists.php.net to get a copy of this message | ||
IR>> You cannot use fread or fwrite and yes I know they are binary safe.
Why you cannot?
IR>> http://php4bug.directoryinfo.net/udp.php I changed the
IR>> example
IR>> to use fread and fwrite and you'll see it just hangs. :(
Well, I'm unable to get there neither yesterday nor today. Can you post
short code example on the list? It works for me all right.
Anyway, fgets is *NOT* supposed to be binary safe, and it can not - just
think about it a bit. How can function that requires certain characters as
it's data stream delimiters be binary-safe?
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106