Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124740 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 DE22F1A00B7 for ; Sun, 4 Aug 2024 17:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722791856; bh=VRBaKJA10CkPvsdLbxu8jek2R2yrzZaO9KmQhbrhqwU=; h=References:In-Reply-To:From:Date:Subject:To:From; b=eWwtehPf/cS9ngk/reUPfgJ8aodKZ2vFiARCOh9pCxMG3u3f8+5WJFjybiAPUrjBX 1BHbWAVXtqlq5QcGjmtlaErX3bSmgpiXFaYb1GbpbHCFANK+XAwJxJlmGcOnw6mA9c mhiTb4eAEzwOEqEGLHWtXl9FVsQDkdpEAZcOzbJ2f4Oqga7MsfVck5m7JWQnC/IGWG ertyEcb6ITnwRTxH7xRvCpbC6mjv2s+/AyegsfeMTK/utG1gwpG9P+zOcCraekjcS3 I4wEeviUI/1zGYgnlzVJzwY8I3+QTBVC3xg3p0NNknyfMIx4jPJNBAcJhKh3rShRcB DLzNQIugK40pA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A474218007A for ; Sun, 4 Aug 2024 17:17:35 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 ; Sun, 4 Aug 2024 17:17:35 +0000 (UTC) Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-6b95b710e2cso11120456d6.2 for ; Sun, 04 Aug 2024 10:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722791754; x=1723396554; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VRBaKJA10CkPvsdLbxu8jek2R2yrzZaO9KmQhbrhqwU=; b=RY/aP3gtBZZIR6cPOalIYpB392mnN2u6/aLBz83dqAQOerDfsri+t8mt4RXgClqQL3 6TWGsZggFu7g6q5NbbnsKMMVRcjWahoBtYkbly1oEcCssIle+eQYppcaEoZ9EAIWHNPF AhGUj5LTsVqenljNUtvVWPRc+g9a8pa1QRQd2LCbSi0+dIRvbKa8513E8U0AUwq+D35e RIJLESMNrVy3ic0ttPSnoMnlrEO2uZOQkKnp5tAYkbzpIQWbZu3saedxpKA0375EGw6t 8rqbqkK4QUnGEzAZ7dxBhUaXMEO8G0/rKB47GrYMhPc7+yJIOXl0edUiNwInZ/ZuI7iJ jDGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722791754; x=1723396554; h=content-transfer-encoding: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=VRBaKJA10CkPvsdLbxu8jek2R2yrzZaO9KmQhbrhqwU=; b=JOfP3wvPwqnANPJKxSr5ei3gt48jZXUZSIpSnkRXznXn0KZS32nhgFoUXlWO0nuABV Mvph2YoZS+RbqffBVONXhRB6BxOLhDPed8WLdt34/hXB2MSMgtYYgLE1i7oRSgADSAD+ j7CvaPWqN8UjG8/IXb/imxWwPNGd7E3SRiLJ/c2HTy53iRvmuqgNLvbL2GO3vFrpPIBf 9V2KgEV0Nk/+7M+dUi36IKhDfMrA56V7J9r8wKLz+8CRudggRVj1u4qtah4nh/NUNL0e R2h+ClSpDGsJq7/Z0ZsmvoWar3PZQuzdACPUUcOLcVHyB55H6HwSSd52l9nhVCxtRl6Y bgcQ== X-Gm-Message-State: AOJu0Ywss1eXJT2JugJb14NqwabdGwx07o2rLC2k/ITA5/2vYUf6E8rC aOS2a8IvBjl3qmEzSPEZz0ZXUTFD6sXzhjDlN87gWJjX0fLWBE7RufR9TWaojc7/GUtL/HhihfY RmN1HKYZlUEjTG27RYqI84H6YWVCuboEKmkc= X-Google-Smtp-Source: AGHT+IHjIyw6KkZucjlENNO38TLQ3UFzVCsAwU683/Kxt3kl5+wl6g+kXmcmbA63WbarkzzLJ331wCVJjAgMrvcC5Qs= X-Received: by 2002:a05:6214:4489:b0:6b7:980b:e096 with SMTP id 6a1803df08f44-6bb98396b10mr132235456d6.22.1722791753946; Sun, 04 Aug 2024 10:15:53 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <3563cf9b-8eab-4c82-b525-a5d2f9a767bb@varteg.nz> <38920A4B-790D-48C7-B2F6-C49D3F506232@rwec.co.uk> <0824789d-0e36-4628-85c1-4b8d9b7f86af@varteg.nz> <2244a37f-8c51-448d-8a56-329ff32e6470@bastelstu.be> <0e1a21ddef3c7da17a3539b92d5f442763f4b1f8.camel@ageofdream.com> In-Reply-To: <0e1a21ddef3c7da17a3539b92d5f442763f4b1f8.camel@ageofdream.com> Date: Sun, 4 Aug 2024 19:15:43 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Add Directive to Make All Namespaced Function Calls Global To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Nick I find it a bit unfortunate that you gave my thread barely any time to be discussed. On Sun, Aug 4, 2024 at 1:42=E2=80=AFPM Nick Lockheart wrote: > > I would like to discuss and then vote on this proposal as a feature, > without getting into any specifics of syntax. > > I propose that we vote yes/no on if there should be some way, whatever > that way ends up being, to tell the parser to always treat unqualified > function names as global. This can be achieved in various ways. For example: * Per-file, via declare(), new use syntax, or whatnot. * Globally, through an INI setting. * Via hard cut in a new PHP version, where a relative calls just stop looking up local scope. * By flipping lookup order, as proposed in my last thread. One might be in favor of one approach but not others. Of course, everybody will be in favor of a "free" 2-4% speedup. Hence, a yes vote won't mean much. Ilija