Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120298 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1189 invoked from network); 15 May 2023 18:48:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 May 2023 18:48:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F3A47180562 for ; Mon, 15 May 2023 11:48:56 -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=-0.7 required=5.0 tests=BAYES_05,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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 15 May 2023 11:48:56 -0700 (PDT) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-3f4249b7badso91907055e9.3 for ; Mon, 15 May 2023 11:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684176535; x=1686768535; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=BiF5hslipshqLFhHU6aKFI46/fSX4USzgbpC4e+ymJU=; b=Wi+evfGVak6aP1aLdCKB8KNUicYoI84P16y84hNLKzljMzE8DV+54qc3+Ya4m2EU6V PbuNIF6O9vIml64+3oR0LHrL2vuwV7T8RqDNdRABf6FyXw0L7HnVULFyEM/F7QUJJRmW pUk38/RuofboD5M6eQEDeuzRwWl2cwUK/x55ANLiI4J4z/fL3OzqchNE84zOh/7o5qt3 FO4455Bvau/ggqv0nB+Rvnyys7vztAR3e8evcve7hplPL3GtCOr9QxPeIt0hKYN8vhtW nw4SWo0+VSLEgNp2WHcVB2CXO7DPmT1t1w7Grl3mUCRP0WoxtX1iP9Ag7uvvlh389S9y P9qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684176535; x=1686768535; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BiF5hslipshqLFhHU6aKFI46/fSX4USzgbpC4e+ymJU=; b=OBawxJezMBP5Er2j1i5emtWdR7i0wER6idTpWQBprimBXAQZbOCqXybOtTWLCxJEwA JwyFmZIR1QPbiTzQi2uPPu4gR8bQB52jG5QLFo13jwZM9bKu1JCJwUcgM5FSuYRh14fk uTFkiVDSF99mSq1yTFGbPA/2oOwf9XGaVOWwrZzdOgo0wDXJfJqyO5jl+Q/P25ICfvtN xnyjT4TsLsiVogfHZdpA32TbS8sw/eAHX0oceaOXW62m+jlZ5sBnckC09AI8OFOZGmDU Xy4Fco+nCEQwnOxi75JXT0b8dEHR1fpTc1so4mB422Cunpf5X4QlCS4Y1W05slGaHq2V Ezrg== X-Gm-Message-State: AC+VfDzt6Q2Ga74o8O6c6HGS5gnkFt3GPtt2oHo4DKzOBjG40N7QvOSx vCIEXxIMlqhdWUxMXcGgEWg= X-Google-Smtp-Source: ACHHUZ6h6Y4WAKeNWMf3bCt1T9Bzh82bnAIXC0FaUZb7yzqRqwbOIamCBI93FcGz4dIOAVEBUoGSXQ== X-Received: by 2002:a7b:c7d5:0:b0:3f4:d18f:b2fb with SMTP id z21-20020a7bc7d5000000b003f4d18fb2fbmr13060595wmk.8.1684176534892; Mon, 15 May 2023 11:48:54 -0700 (PDT) Received: from [127.0.0.1] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.gmail.com with ESMTPSA id q12-20020adfea0c000000b003078354f774sm20536wrm.36.2023.05.15.11.48.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 11:48:54 -0700 (PDT) Date: Mon, 15 May 2023 19:48:55 +0100 To: Robert Landers , internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: <436378BB-FDFA-43BD-A633-C030C347E683@gmail.com> <359D9C64-52A5-4BF5-91B5-72F7CE116F78@gmail.com> Message-ID: <6F1BB392-0E96-4C7E-9A1A-D21BB94AEEFD@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----A2TGQT61NOU7U285UDXVIIU6843X1J Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Discussion] nameof From: rowan.collins@gmail.com (Rowan Tommins) ------A2TGQT61NOU7U285UDXVIIU6843X1J Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 15 May 2023 19:26:09 BST, Robert Landers = wrote: >php -a >Interactive shell > >php > use \NoExists\Channel; >php > echo Channel::class; >Channel > >Turns out, it's a CLI specific thing Ah, probably each line in the interactive shell is considered a separate c= ompilation context, like a separate file, so the use statement is no longer= in effect on the next line=2E 3v4l=2Eorg is great for verifying things like this, because you can see at= a glance if there's been a change in behaviour in previous versions, or in= deed versions newer than you have installed=2E If you've got an up to date = PhpStorm, you can actually use it directly from a scratch file=2E (Huge sho= ut-out to Sj=C3=B6n Hortensius for making and maintaining such a useful too= l!) Regards, --=20 Rowan Tommins [IMSoP] ------A2TGQT61NOU7U285UDXVIIU6843X1J--