From: Antony Dovgal Date: Tue, 12 Dec 2006 22:38:30 +0000 (+0000) Subject: erm.. somehow this part got here twice X-Git-Tag: RELEASE_1_0_0RC1~702 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f0472aa4cc3bfd964d4e32cd01e6a833d24c4e3;p=php erm.. somehow this part got here twice --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 6903538d62..46c720688b 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1205,11 +1205,6 @@ PHPAPI PHP_FUNCTION(fgetss) php_stream_from_zval(stream, &zstream); - if (length > 0) { - /* For BC reasons, fgetss() should only return length-1 bytes. */ - length--; - } - if (stream->readbuf_type == IS_UNICODE) { UChar *buf = php_stream_get_line_ex(stream, IS_UNICODE, NULL_ZSTR, 0, length, &retlen); UChar *allowed = NULL;