Re: [PHP-DEV] RE: PHP 4.0 Bug #3601 Updated: fgets is NOT binary safe. From: Stanislav Malyshev (stas <email protected>)
Date: 10/31/00

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 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 <email protected>  http://www.zend.com/ +972-3-6139665 ext.106

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>