Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111386 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82347 invoked from network); 9 Aug 2020 04:49:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Aug 2020 04:49:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B89C31804D1 for ; Sat, 8 Aug 2020 20:48:07 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (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 ; Sat, 8 Aug 2020 20:48:07 -0700 (PDT) Received: by mail-io1-f43.google.com with SMTP id j8so5695055ioe.9 for ; Sat, 08 Aug 2020 20:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S1ibwNUPFNhSacoimsLA0e5D8FeVXedjeEgIZHFd3Hs=; b=une+5b44bvhlBTq2CFAc49Cs0JFACGp9vyrIrVr4HzoSCMutFuhTDlTyKs2gT5gADp eAvTeaYpntN9GecHBecsa/AQOIjH0k/RMUEQIq18Gs+s+zEHhszmdkw1KY0+jRC/A++f IWdzhmO181Wlv7Obz4bLXXm3b5sCd3a8xPFb2vez48OryhW2ItHSpbbpP+DYLDf5Y9o9 XvTRGZsTaDk/NpOzp6cT5sbjXZCV4/5HlkBlg9wfJPfkXrLuv1Kq0yrFhoWtKucJzpZ9 +XXmKlmg4MlKtMf6GJbLS+FZyfsLfjf9dlorHSQubXV/Wrfh75ealIOU+aLCZaBKsi50 5ElQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S1ibwNUPFNhSacoimsLA0e5D8FeVXedjeEgIZHFd3Hs=; b=ftSjkPV6NouJsC8zAgUsf9WLdKnifj05LOeOC3YggCe9yt0tvFLa66uCDqdZ5E3tl+ cufbb9EUT1v7yqAlQvGlTq1AINIuTkxsQkwCUwcjvSBxb4LJ36Tyqp02f3KFpFi6+005 imtK4XyE/TC8MvyIcgl0MsR7h3YT6Mc+PIbY8VBvytkIwt5CUqCAPf76UStyEXOBRXjx 2bQ4YUrVjxn+gEWbUm1r7mjjdhJPax2cVwCo51xJu8GCB/PGtodZCkf8GgCm95dRMVwY tnCyjjzQteuVKz5u25eldCx/ARs4sBHYO/yO1I8khr3HB7n9SBkj7n2iVvl5dD/x0xpy 1DHg== X-Gm-Message-State: AOAM530csJ64rg7lTam+6Pe7OAUJoNj5hDmLVrEtzSRDVr/KbpD4i+hX CdvjxysQk8mUOSOSPhcT5l7Ey1FAbmt6JCMV4AE= X-Google-Smtp-Source: ABdhPJz3P04enc4SLjhFbDEZeiodotjF4ECD0UnRrMobaWY4T+WeWhXGC+tpdITAJdIGFOJGqbpT0TyBqzJpjCwYALY= X-Received: by 2002:a02:c9d5:: with SMTP id c21mr12715035jap.72.1596944881038; Sat, 08 Aug 2020 20:48:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 9 Aug 2020 05:47:48 +0200 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005c396705ac69b489" Subject: Re: [PHP-DEV] Null-safe property access in interpolated strings From: ocramius@gmail.com (Marco Pivetta) --0000000000005c396705ac69b489 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Aug 9, 2020, 00:17 Sara Golemon wrote: > Do we expect this to work? > > $foo =3D new stdClass; > $foo->bar =3D "Hello"; > echo "$foo?->bar world\n"; > > Because at the moment it doesn't: https://3v4l.org/nLv3l > > -Sara > Ooof, people still interpolate strings that way? Good riddance if it doesn't work: this code is questionable (and not just because of the question mark in it) =F0=9F=91=8D > --0000000000005c396705ac69b489--