Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26594 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83694 invoked by uid 1010); 15 Nov 2006 02:57:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83679 invoked from network); 15 Nov 2006 02:57:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2006 02:57:24 -0000 X-Host-Fingerprint: 82.255.202.108 lns-bzn-56-82-255-202-108.adsl.proxad.net Received: from [82.255.202.108] ([82.255.202.108:3156] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/E0-02763-2128A554 for ; Tue, 14 Nov 2006 21:57:23 -0500 To: internals@lists.php.net,Antony Dovgal Message-ID: <455A8259.108@php.net> Date: Wed, 15 Nov 2006 03:58:33 +0100 Reply-To: toggg@php.net User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 References: <4558E5E7.5040809@zend.com> In-Reply-To: <4558E5E7.5040809@zend.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 82.255.202.108 Subject: Re: fgets()/fgetss() BC break in HEAD From: toggg@php.net (bertrand Gugger) Bonsoir, Antony Dovgal wrote: > Hello all. > > I'd like to continue recent IRC discussion here, to draw more attention > to this issue. > > At the moment functions fgets() and fgetss() are broken in HEAD, as they > return characters instead of , as they do in 5.2 > (and I'm pretty sure this is the way they used to work since their very > first appearance in PHP). > So, anybody relying on fgets($fp, 10) to return 9 characters would get > 10 characters instead. > > Yes, this behaviour is not very intuitive for those who are not familiar > with fgets() in C, but it's well documented and pretty much expected. > > I believe this is an unreasonable BC break and I strongly believe it > should be fixed. > There are 0 reasons to do it (without any discussion) and it can only > result in more users' confusion, even if the original purpose was the > contrary. > May I say that this thread looks very funny and that poor people wonder what php will be ? Or I am a troll. -- toggg