Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125084 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 2983C1A00BD for ; Wed, 21 Aug 2024 06:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724220477; bh=Zd4aSuIYlRiw19AMSC6iEmI3kHizaJMQTPJAOI5A0RQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JwabPz2T7WIYFPrbEQqSDqxXfz8EnQF65jrjWsZ59LYK1cPCx4xiqikyrRmi3Xv8b t9lBD5GW4ekPCnhsGpplqwD0dx9j5rQGMcs1hNA2ayj0z0lT/IMr7n6QSHGokg0GGF V5rlA5/AAxnjpLJSPsGQoBQfH9/+TYSiJ++J00wZAv6BlckSgd0zt7yHr7U4AZox83 2RCfxHLuw/VA4bkobbazNP3VjsJPxkfxgOG+VW8RhoeeOgH8zlMFTfM/1z2lsvBIE8 pT8C1JYymdDUXRXxydxJkLYx0vLpMJ53X1qCzF8pnjvX0LMAa1c9Ws0lj1OvaXPgj3 Gsma0Lef+W0lA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 46A80180076 for ; Wed, 21 Aug 2024 06:07:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 21 Aug 2024 06:07:51 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4281d812d3eso68560955e9.3 for ; Tue, 20 Aug 2024 23:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; t=1724220361; x=1724825161; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Zd4aSuIYlRiw19AMSC6iEmI3kHizaJMQTPJAOI5A0RQ=; b=OEUjwL/QdcUyhQXhY4mMjuJcwz/TCSf9rQAgp5Ldq71dk8RMGUeZmtjEJJldGXaJ5u tSheSGul30LglX7DmYcIDfn011ZVj2IiFzWHC8DrCi2pGQPb9YwHjKThQX7EkkZJrDmK PlN84a0Xe+ICcTQKlmdDuH5oe/xEOBLUHUs1g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724220361; x=1724825161; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zd4aSuIYlRiw19AMSC6iEmI3kHizaJMQTPJAOI5A0RQ=; b=nI9W5TW7gSwmQze2Je2KsCF4tuQJaZX3TdUXUXW1hWR53z5eztzDDUyvGYuq71ZKsC LB1eKFgT1gSYkZndjnnlNzXBhFBf8xGFu04tB/SH+muxCc6jRmN7wW43Yy+F40+8/iYZ 9PB7gHAvER+9DwFPqXpt9x2V949FFv3Y2feA6RcK+Ij2uCFvUyDanVjJ+WeH4HDUNSiG QqXLSAjqXQQzEjBbJS9JVV+4IxtRyylq4ENUbyULgHbqH4XLxftR72oYo9BgdXEmrlzo xFlg+Eq3oWQIN/GLF/a8SumlGWCO6kCcnFJgLEp6jSexqIz2nvdWz1H80YBr9U3xIo2M zqJg== X-Gm-Message-State: AOJu0Yy5hk0MFLDepxm+Hgkus8pA+Q00oF5NI0ZMCn7u85CyfrW/+WH3 3yK9AVSB0KNJTunQpkroBA+CZMw7X6SCEEkyZq7XgpOaxsLCnsUTCrB7Tuzr59aKFG+U6/hMwrl k9UKMgOwVaeweZsr55v+MPlhe8IKGgo0Fism42iONsSX1n2Lt X-Google-Smtp-Source: AGHT+IEGcrePC1vzDEqP4jLYUpsimevOuT9f1Jnukq/R9Jg6FZ3MgNvu7x3LPXIFlI8sCTMGDpuW0pP3wbARskTgRvA= X-Received: by 2002:adf:e950:0:b0:371:79f0:2cfb with SMTP id ffacd0b85a97d-372fd720f40mr861262f8f.46.1724220360621; Tue, 20 Aug 2024 23:06:00 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <8B2CA646-5778-4C66-A17C-8A30405A854B@cschneid.com> In-Reply-To: <8B2CA646-5778-4C66-A17C-8A30405A854B@cschneid.com> Date: Wed, 21 Aug 2024 00:05:49 -0600 Message-ID: Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) To: Christian Schneider Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: levi.morrison@datadoghq.com (Levi Morrison) On Tue, Aug 20, 2024 at 8:26=E2=80=AFPM Christian Schneider wrote: > > Am 20.08.2024 um 17:14 schrieb Levi Morrison : > > Keep in mind that qualifying > > every global function is annoying but probably can be somewhat > > automated, and will bring better performance. So again, this improves > > the existing code even without upgrading. > > Just to be sure: Would code *not* using namespaces also have to qualify g= lobal function calls? I admit that I somewhat skimmed the discussion so I m= ight have missed that point. Code that isn't in a namespace is in the global namespace. So no, such code does not have to qualify the global function calls.