Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89321 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35068 invoked from network); 23 Nov 2015 09:58:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2015 09:58:02 -0000 Authentication-Results: pb1.pair.com header.from=lior.k@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lior.k@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.218.54 as permitted sender) X-PHP-List-Original-Sender: lior.k@zend.com X-Host-Fingerprint: 209.85.218.54 mail-oi0-f54.google.com Received: from [209.85.218.54] ([209.85.218.54:33197] helo=mail-oi0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/C5-01565-723E2565 for ; Mon, 23 Nov 2015 04:58:01 -0500 Received: by oixx65 with SMTP id x65so117526736oix.0 for ; Mon, 23 Nov 2015 01:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zend-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jzQ/631WzyiG0BMXPWt5KEKo4/JSvJn1/Yclq2/J24k=; b=x5emHZ2V83vHDyi2xUkT2t0NE5aKkI2YzM8qdQ5YIzNttW0wYFb4Xtqc0jNso1LUil FyhkqfEU7FWBIFGvV1WpgYKTJXFkN9hXKJbDuu5+VUT0abWHEiNmrFzsCHOyUWetzlhj tDtpEhhwO3IUg4H02uqI8DzcF5iypi8DXUGuJ6tmX+SgL3l/2EssZWh3exlCy47NJlBM WE0+/eWrHaruTzccORxixwNY1Z5PHokLPUN88QN3y8Ia/HzT+2sbHTYruoJXYmOYdClB vpz/QrmEdd3Zy7qV6OG3bGAW8SYvYuKlzFxwTkesNtJrNgSstKuXn9o/MrsOmdtTJiBH 9sQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jzQ/631WzyiG0BMXPWt5KEKo4/JSvJn1/Yclq2/J24k=; b=h+WWyXPDIxOxiNiq9e4CO4lAwo0oPzfxcaySdabAzL9Ez/KDoaW875sqcC9yhaQHiN nBgzRS+YBplCYYaDb0F/H9Jk+/hVyQY8WPJ81Oa59NyTosvChGcF+zRdihwtnBalhJ3u CPg3tibjMijJuzoev+8MC1S2ZL1vIlXFMn4Wdq8hcNYaGjvAFwCCRBkMd2UtcxSeh+YD 2v6aU+gpGgFT3cpj8TXidBjapNfHwfqKx2vcPcAgjlMB5gwD8Sv8mQF0DTzxDrY3NFZz oFZkWG7zxcSeFxda9VP2QodAc+p3+xhHbJXXB7He6M/Hh5REYwUdHsZHcrknDGUajFLg AaVg== X-Gm-Message-State: ALoCoQlxzhCc4ucYJ3BUTM4cTYPgr3uogHFMwktfZUwPv2D4boOrIlgpVk8y3TkvAKJp6RRzAnuJsBBa6Z7DsJ+FeVeyYvWhV80sVZv2eI9MzBNCOKg+dH6j1r3uisS4Gyv/hkVx2LkSjrm8DhTwPPMaYRyEI5hHCUeakscn9JRtFTkeKugfAeE= MIME-Version: 1.0 X-Received: by 10.60.135.68 with SMTP id pq4mr15944976oeb.7.1448272676055; Mon, 23 Nov 2015 01:57:56 -0800 (PST) Received: by 10.202.198.75 with HTTP; Mon, 23 Nov 2015 01:57:56 -0800 (PST) In-Reply-To: <8E.46.23339.4FA22565@pb1.pair.com> References: <8E.46.23339.4FA22565@pb1.pair.com> Date: Mon, 23 Nov 2015 11:57:56 +0200 Message-ID: To: Andrea Faulds Cc: PHP internals list , Dmitry Stogov Content-Type: multipart/alternative; boundary=047d7b417ff96504ea0525324250 Subject: Re: [PHP-DEV] Re: Pear fetch script problem on PHP 7.0 From: lior.k@zend.com (Lior Kaplan) --047d7b417ff96504ea0525324250 Content-Type: text/plain; charset=UTF-8 Hi, Thanks Ferenc for checking. trying to debug this, I've added "echo var_dump($argv);" in the begining of the script, but now it segfault. before: sh-3.2# /php-7.0.0RC7/sapi/cli/php -n /php-7.0.0RC7/pear/fetch.php " http://5.77.39.20/install-pear-nozlib.phar" pear/install-pear-nozlib.phar Fatal error: Redefinition of parameter $argv in /php-7.0.0RC7/pear/fetch.php on line 3 sh-3.2# /php-7.0.0RC7/sapi/cli/php -n -m [PHP Modules] Core date dom filter hash iconv json libxml mysqlnd openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite readline Reflection session SimpleXML SPL sqlite3 standard xml xmlreader xmlwriter zlib [Zend Modules] after: (gdb) r -n /php-7.0.0RC7/pear/fetch.php " http://5.77.39.20/install-pear-nozlib.phar" pear/install-pear-nozlib.phar Starting program: /php-7.0.0RC7/sapi/cli/php -n /php-7.0.0RC7/pear/fetch.php "http://5.77.39.20/install-pear-nozlib.phar" pear/install-pear-nozlib.phar Reading symbols for shared libraries ++++++................................................ done Reading symbols for shared libraries ........................ done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010 zend_try_compile_cv (result=0x7fff5fbfe440, ast=0x103e6f100) at zend_compile.c:2178 2178 if (zend_string_equals_literal(name, "this")) { (gdb) bt #0 zend_try_compile_cv (result=0x7fff5fbfe440, ast=0x103e6f100) at zend_compile.c:2178 #1 0x00000001002b7ff1 in zend_compile_simple_var [inlined] () at /php-7.0.0RC7/Zend/zend_compile.c:2226 #2 0x00000001002b7ff1 in zend_compile_var (result=0x7fff5fbfe440, ast=0x103e6f100, type=0) at zend_compile.c:7219 #3 0x00000001002bb46d in zend_compile_args (ast=0xfffffffffffff2f5, fbc=0x103e6f100) at zend_compile.c:2722 #4 0x00000001002b7e62 in zend_compile_call_common (result=0x7fff5fbfe648, args_ast=0xfffffffffffff2f5, fbc=0x10232e050) at zend_compile.c:2810 #5 0x00000001002ba8e5 in zend_compile_call (result=0x7fff5fbfe648, ast=0x103e6f100, type=65523712) at zend_compile.c:3245 #6 0x00000001002b7366 in zend_compile_expr (result=0x7fff5fbfe648, ast=0x103e6f100) at zend_compile.c:7111 #7 0x00000001002b428f in zend_compile_echo [inlined] () at /php-7.0.0RC7/Zend/zend_compile.c:3616 #8 0x00000001002b428f in zend_compile_stmt (ast=0x103e750d0) at zend_compile.c:7007 #9 0x00000001002b7990 in zend_compile_top_stmt (ast=0x103e750d0) at zend_compile.c:6966 #10 0x00000001002b797d in zend_compile_top_stmt (ast=0x103e750e0) at zend_compile.c:6961 #11 0x00000001002b797d in zend_compile_top_stmt (ast=0x103e770a8) at zend_compile.c:6961 #12 0x000000010029e6f2 in compile_file (file_handle=0x7fff5fbfe728, type=65523712) at zend_language_scanner.l:607 #13 0x00000001002cc4dc in zend_execute_scripts (type=8, retval=0x7fff5fbfe990, file_count=1606412688) at zend.c:1422 #14 0x000000010026a1a9 in php_execute_script (primary_file=0x7fff5fbff6d8) at main.c:2471 #15 0x000000010035dad4 in do_cli [inlined] () at /php-7.0.0RC7/sapi/cli/php_cli.c:974 #16 0x000000010035dad4 in main (argc=1606416352, argv=0x7fff5fbff7e0) at php_cli.c:1345 (again, works fine on Linux) Kaplan On Sun, Nov 22, 2015 at 10:51 PM, Andrea Faulds wrote: > 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/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7b417ff96504ea0525324250--