Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26647 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37293 invoked by uid 1010); 16 Nov 2006 17:04:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37275 invoked from network); 16 Nov 2006 17:04:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2006 17:04:45 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:51779] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/52-01084-92A9C554 for ; Thu, 16 Nov 2006 12:04:44 -0500 Received: (qmail 9908 invoked from network); 16 Nov 2006 17:03:12 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 16 Nov 2006 17:03:12 -0000 Message-ID: <455C9A24.4080705@zend.com> Date: Thu, 16 Nov 2006 20:04:36 +0300 User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Antony Dovgal CC: php-dev 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 Subject: Re: [PHP-DEV] fgets()/fgetss() BC break in HEAD From: antony@zend.com (Antony Dovgal) The issue is now solved, thank you. EOD On 11/14/2006 12:38 AM, 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. > -- Wbr, Antony Dovgal