Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100369 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27404 invoked from network); 4 Sep 2017 13:00:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2017 13:00:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.174 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.174 mail-wr0-f174.google.com Received: from [209.85.128.174] ([209.85.128.174:34042] helo=mail-wr0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/8C-04538-F4E4DA95 for ; Mon, 04 Sep 2017 09:00:00 -0400 Received: by mail-wr0-f174.google.com with SMTP id z4so1414869wrb.1 for ; Mon, 04 Sep 2017 05:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=7IBPBi4CZH3ZC2dXjER9aMLAWGAaIhLGYLCCDfm99TA=; b=GhuU8LG4VfYeNDZ7k+NRgceaE93AyOjOP0Y4kBYJesyofyPOfyOufmdzn84e3bLDuU rN7Yt1BT4G3K4kjkUuCJN/KP7ONmw3nqG8d6NRP8tdWmVbiaE2g7LsZ87i/0aOZ91KWD Hd9DdZEuwG7qyMuI/XXlf66MpxmfzCIGwA1z080ZdyLWAj1keCIbiwj5P1Q04UqMCCFT u5wox4KnZ49+LC3q6m7+r1oqi7p8O1qx2cEqeeS3kK/rAbaTggNw5S+wrHI1gB5SpUa+ R93LTZLYwAgSi9tpNBYv9GrB7R0BgCDCJqAOjsRPFgq+RADvDzoWWUNpxPczO/ngQYgL dZwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=7IBPBi4CZH3ZC2dXjER9aMLAWGAaIhLGYLCCDfm99TA=; b=kbklhs0D9ldBrBl8RBGRsQAzMZxqNcMgRm7awa9fH7v1EexqEz/RcqZbh6Gcu7psN4 EJnx34Ma11hrB5fNQ5Iarr9prSJcTvzUzp2eQKvCXJflZDL2+IWTcjS5uJ8h+BbmXn4G ojHgHv+ZfCtJNxeICzIOW1uY0rrTwuw2frRsAdLcS6mzQkMTC9hnvHsdGQTXottm38tJ yymw3ALxdRzqmfYBkaSd6rKorI8ypSKWy46ceZ4TV9NGnhHz4IjcnA2yiZuPac8Wxjjj 15LhITvphAKmUr3nZhFlAvqn4xWnBK7FAR1Ep65I7L4fNHCT26dqz4LFqa09Vsfds3l5 OXTA== X-Gm-Message-State: AHPjjUgsTrvZhUwT229TCPsRNG/Z618lqDcatuYJ2KksWlYEvnyOTYrP oG2oArTW4ktVRe1NJg8= X-Google-Smtp-Source: ADKCNb4wVoD5+gkrLCnv75v7JnHwHOL9tXnCmVFx4Ynl3Qi50jICbnwmBEitTwxjLrjHN/8xhV0P6Q== X-Received: by 10.223.197.199 with SMTP id v7mr233315wrg.295.1504529996483; Mon, 04 Sep 2017 05:59:56 -0700 (PDT) Received: from [10.60.21.86] (188.29.165.185.threembb.co.uk. [188.29.165.185]) by smtp.gmail.com with ESMTPSA id 137sm546989wmp.6.2017.09.04.05.59.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Sep 2017 05:59:55 -0700 (PDT) Date: Mon, 04 Sep 2017 13:59:53 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <27.87.04538.90E9CA95@pb1.pair.com> References: <27.87.04538.90E9CA95@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Jefferson Gonzalez Message-ID: <8159BE2E-3AE5-4754-8D68-1BCABADB8900@gmail.com> Subject: Re: [PHP-DEV] I this a bug in PHP 7.1.9? From: rowan.collins@gmail.com (Rowan Collins) On 4 September 2017 01:27:49 BST, Jefferson Gonzalez w= rote: >I upgraded my PHP version on a server from 7=2E0 to latest 7=2E1=2E9 and = got=20 >this strange behaviour, did something changed on the core language or >is=20 >this a bug? > >PHP sample code: >------------------------------------------ > >function test() >{ > static $staticValue =3D test2(); > > return $staticValue; >} > >function test2() >{ > return array(); >} > >print_r(test()); > According to 3v4l=2Eorg this has never been valid: https://3v4l=2Eorg/vRaN= K The error message changed between 5=2Ex and 7=2Ex, but if you're already = on 7=2E0 you shouldn't have seen any change=2E Are you sure this test case correctly represents the code you're having pr= oblems with? Regards, --=20 Rowan Collins [IMSoP]