From 6f0472aa4cc3bfd964d4e32cd01e6a833d24c4e3 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 12 Dec 2006 22:38:30 +0000 Subject: [PATCH] erm.. somehow this part got here twice --- ext/standard/file.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.50.1