Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96636 invoked from network); 4 Sep 2017 04:41:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2017 04:41:58 -0000 Authentication-Results: pb1.pair.com header.from=jgmdev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jgmdev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.169 as permitted sender) X-PHP-List-Original-Sender: jgmdev@gmail.com X-Host-Fingerprint: 209.85.217.169 mail-ua0-f169.google.com Received: from [209.85.217.169] ([209.85.217.169:37986] helo=mail-ua0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/88-04538-499DCA95 for ; Mon, 04 Sep 2017 00:41:56 -0400 Received: by mail-ua0-f169.google.com with SMTP id l24so4362639uaa.5 for ; Sun, 03 Sep 2017 21:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3S5cfsUbW+Gs/xy/vr4vzY4lpegrEWccC4+WLZ0RAA4=; b=TtNsVzzibu3HenVJ17c3PqbG2aYdH9IeztbljvN+KDyr+CgpBsRlbqfQAXl9B2WkK5 K8SAeslT/AwfOwdqFElDBMpAo/T0p23Nhvl08n1h6Z7pOJgkgqwPOkiEvGORNSFW42J+ luZBtfGOQK+4dFURUA7XkolviOUEiyy8vX+c9Z/6G6V9k712me/eqNc4QtruBGPl1oEp GWaQBgJqcBuw00AX19YF7bGbE2YhbNwxojgjSH35EHPMfn5g0ZEfabb9184wJaOCHBZM izbXDZUqbZ+WND03kL1isUUt62q6zxvkSIHbrdK2g62DnYMEQYRZzNiLTXjmm+5OZRWr at1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3S5cfsUbW+Gs/xy/vr4vzY4lpegrEWccC4+WLZ0RAA4=; b=Yl5T4w/KC7KSkkKa4OiY3P1AdH3Zwnjhr5XNkQhOjqQ4mj5GSNhr8VdYP1yIukcw3n k9rKfYLJj4YMDMBeCAAz1b2p3v16KepGgm2rebwX3fT/dXsDA7zNUuVbBQDDunZBr0Oo snLhIQMmcDJkUbjrzN7J8bjvGNqjdDOTZpRm+VDbPd4Ek4fsrsYYathuks/PwU7vf9BU GDrxnw/2KAJLT2eJdmpM9itQ3gXPDDVoGmOKxyVhAVKR1aOCUm6NIgH3vsb8YpxH0ATE NpxwweJtvYuLigX3EQB+Zp2XGKFEYBjoQCIbqZ24L5wmTHGNWMOxCVTtpRtPZJLMzMhu 9hYA== X-Gm-Message-State: AHPjjUiWG6pBnR47LhyeWyd+Ggsvn2P2iYQMZZ9ddh7V48wV42z4AbEh ryTG7Sau/x6KT8hHV0M= X-Google-Smtp-Source: ADKCNb61hApscHidozm2FZwuFLcTcI8EP4rNYHYYwrOx/3eMZg44IGi/XfrVA5ZdLoU9MK0jocg/9A== X-Received: by 10.176.70.210 with SMTP id t18mr5793977uab.198.1504500113634; Sun, 03 Sep 2017 21:41:53 -0700 (PDT) Received: from [192.168.1.121] ([24.50.217.236]) by smtp.gmail.com with ESMTPSA id d62sm1340186vkb.50.2017.09.03.21.41.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Sep 2017 21:41:53 -0700 (PDT) To: David Rodrigues Cc: PHP Internals References: <27.87.04538.90E9CA95@pb1.pair.com> Message-ID: <8931f63b-2c9a-c723-e8b9-bd3a9398b899@gmail.com> Date: Sun, 3 Sep 2017 21:41:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] I this a bug in PHP 7.1.9? From: jgmdev@gmail.com (Jefferson Gonzalez) On 09/03/2017 05:48 PM, David Rodrigues wrote: > From doc: http://php.net/manual/en/language.variables.scope.php > >> Note: Static variables may be declared as seen in the examples above. > From PHP 5.6 you can assign values to these variables which are the result > of expressions, but you can't use any function here, what will cause a > parse error. Ahh, thanks a lot, I missed that one... I guess this change is to optimize the performance of PHP somehow. Now I will have to make a search on my code base to see where I'm using more functions that use static variables to store the return value of a function (to speed stuff up) and change it on a way that is compatible... static $var = array(); if(empty($var)) { $var = function_output(); }