BC break in headers_list

From: Date: Thu, 05 Feb 2015 20:41:27 +0000
Subject: BC break in headers_list
Groups: php.internals 
Request: Send a blank email to internals+get-81964@lists.php.net to get a copy of this message
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

« previous php.internals (#81964) next »