]> granicus.if.org Git - php/commitdiff
erm.. somehow this part got here twice
authorAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 22:38:30 +0000 (22:38 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 12 Dec 2006 22:38:30 +0000 (22:38 +0000)
ext/standard/file.c

index 6903538d6245974b376b03b19d7168536782ca91..46c720688b45ddd446614828bf476cf91216e4bd 100644 (file)
@@ -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;