Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111399 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55571 invoked from network); 9 Aug 2020 19:35:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Aug 2020 19:35:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4165618050A for ; Sun, 9 Aug 2020 11:34:29 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 9 Aug 2020 11:34:28 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id y3so6175423wrl.4 for ; Sun, 09 Aug 2020 11:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seld-be.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=2cWZwR4lbkN2HG7igUpfMOH40wLdNFUBgRPji5UwSDA=; b=WVJiLbSUwSSIdqb7QAWGqA1vd3oNQ9pNjlUGM4AHeo2egUGxXWRcyvi1M4IerMjvky Nk21Vadkhyv0z2SWNCXjX1CIUCAPAHS5iHWRqloPc50dOM8WHsprwagU8u8ttYEU3MXX sCWpB907PF2R29Glr4GPPOy9fhvF1MpxbyHn9yCStLu95kXOESHgL3NcADyB44F70pal DElj6/f6j7tuCApav7kcIgJhm/MhoxWy8YzP+McMSYHMli3wXvKbCndIorY7Y44v1Kwp +dXs8WzjJdiS4saj/DhyBUWamxZNxf90iYalhwzHmC83LFYAV/UFifKgUvvkV6jP0FQB 8ASg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=2cWZwR4lbkN2HG7igUpfMOH40wLdNFUBgRPji5UwSDA=; b=NC+RNGnvl94DN0FJSo1TSuB0vt8B245mxWR3Te8cgVaMGUvuktjJHp1SKJZ4TbKbYR GcbByb32RiGLPYzpVMorIAN/S3tWWp6suaS/s5vthmJmLP62InfOYkolyZuNmrB/U8ay dNrOqvyfP5Yeu96mMbBBWfIVukT9YuKrgpjPFffMe0P0XQZ3+AcFBaDTMFYzP1MhhnAI 5gx9k4105gaYygwkW+KQGh+RrMff90W9WOXyOCmsjMhZdb/vQ3H0wKUAX9zadM3cJc3H SsFIOizS3E3SkaDVHynUUwFfdYKIN9ng7KzRdzHd5LrneNT4qZrnNW5JRNxx4/JD9vSx 9qtQ== X-Gm-Message-State: AOAM5303uS2A7M5csWs4kAso77kqzVVNqJE7wecI7Beg+1ugOtLjzUiO aPFTh+Mmi3zI9zH1s9KhX330sXiQMlbTyA== X-Google-Smtp-Source: ABdhPJzrPtsaDlRSIAQ9jf6qyiaas5dRVTf17w+beV3BqbScCbyAi2XxT5I6kjFvCX3vjtPFwAZKlw== X-Received: by 2002:adf:a195:: with SMTP id u21mr22548869wru.296.1596998066793; Sun, 09 Aug 2020 11:34:26 -0700 (PDT) Received: from ?IPv6:2a02:168:4b6e:0:e520:5f84:579f:36d0? ([2a02:168:4b6e:0:e520:5f84:579f:36d0]) by smtp.gmail.com with ESMTPSA id h10sm17771001wro.57.2020.08.09.11.34.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Aug 2020 11:34:25 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <24ce93f7-b5b2-fb63-6ea4-032c4e71f049@seld.be> Date: Sun, 9 Aug 2020 20:34:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [PHP-DEV] Null-safe property access in interpolated strings From: j.boggiano@seld.be (Jordi Boggiano) On 09/08/2020 00:17, Sara Golemon wrote: > Do we expect this to work? > > $foo = new stdClass; > $foo->bar = "Hello"; > echo "$foo?->bar world\n"; > > Because at the moment it doesn't: https://3v4l.org/nLv3l > > -Sara Can't say I'm big on interpolation but I'd definitely expect this to work because why not? I think if it can be reasonably fixed it probably would make sense for consistency and WTF-avoidance if anything. Best, Jordi -- Jordi Boggiano @seldaek - https://seld.be