Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63915 invoked from network); 22 Nov 2015 20:52:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Nov 2015 20:52:05 -0000 X-Host-Fingerprint: 176.249.187.88 unknown Received: from [176.249.187.88] ([176.249.187.88:20454] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/46-23339-4FA22565 for ; Sun, 22 Nov 2015 15:52:04 -0500 Message-ID: <8E.46.23339.4FA22565@pb1.pair.com> To: internals@lists.php.net References: Date: Sun, 22 Nov 2015 20:51:59 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 176.249.187.88 Subject: Re: Pear fetch script problem on PHP 7.0 From: ajf@ajf.me (Andrea Faulds) Hi Lior, Lior Kaplan wrote: > Fatal error: Redefinition of parameter $argv in > /php-7.0.0RC7/pear/fetch.php on line 3 > make: *** [install-pear] Error 255 This is a strange and rather concerning error message. If I look at the source code of /pear/fetch.php in php-src, line three looks like this: function usage($argv) { $argv here is only specified once in the parameter list, yet it produces an error. Now, presumably this is some sort of conflict with the global variable $argv. But that's a global, not a superglobal, so it really shouldn't cause an error here. This looks like it might be a serious PHP 7 bug. And yet I can't reproduce it by running pear/fetch.php. Is something weird going on here? Thanks. -- Andrea Faulds http://ajf.me/