Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81964 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65651 invoked from network); 5 Feb 2015 20:41:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 20:41:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.43 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.43 mail-pa0-f43.google.com Received: from [209.85.220.43] ([209.85.220.43:43378] helo=mail-pa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/5B-27691-785D3D45 for ; Thu, 05 Feb 2015 15:41:43 -0500 Received: by mail-pa0-f43.google.com with SMTP id eu11so12336486pac.2 for ; Thu, 05 Feb 2015 12:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=qge63E4mHKkwVv7d6AXcXmNU0mFKS7zXzuIdJC6/MOg=; b=R4tix1MYiu9jRcB+XJCT58fKivu0ZOWtEhNw3ZQZ/o0vXGDHLUI7NBGP5uwEV+fCJc XMrfagDirzg9W4P8ep3zPrc3XUILDRW/V0NQzwd96WPAyPW1hZL5TCAiloQHF2wOb8U5 BxqSXMARCRIU+WeAY9YfcnpUEq1Lfj4xbdJz27fbe7cN5iHE9+iwhnj/wF+EN4W+dszW 0lV/DXPdKL4zwwR3TIknWxnpSSS71hPaVhxvYpE4bikNkuWRajESLQUaIV3lJ+QzZyH/ q2VNyJqpiJy2L5/QVQmpxESmdhso1+amDbVvQL4LUF3oy9clafHJcEvRSOxdwJDayTO7 Nb7A== X-Received: by 10.68.197.133 with SMTP id iu5mr8523890pbc.131.1423168900661; Thu, 05 Feb 2015 12:41:40 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id k3sm5897839pde.79.2015.02.05.12.41.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 12:41:40 -0800 (PST) Message-ID: <54D3D577.2060607@gmail.com> Date: Thu, 05 Feb 2015 12:41:27 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Anatol Belski , PHP Internals Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: BC break in headers_list From: smalyshev@gmail.com (Stanislav Malyshev) Hi Anatol! Your recent fixes to headers_list() - 55cefb2814bde5815a92e8820fff45e037fa8d4f and b5d3c5ca8dee6303498849448e3574cc3642eeea - broke head.phpt test and also are BC-breaking since previously headers_list() always returned an array (empty one if there are no headers), now it returns false when there's no headers. As the manual also says it returns array, I would rather delete the RETURN_FALSE altogether. But if there's a good reason to return false, the tests should be fixed and the notes in the UPGRADING and the manual should be added. I think just reverting to the previous behavior is better. -- Stas Malyshev smalyshev@gmail.com