Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47743 invoked from network); 6 Feb 2018 19:14:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2018 19:14:53 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.52 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.160.52 mail-pl0-f52.google.com Received: from [209.85.160.52] ([209.85.160.52:46187] helo=mail-pl0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/06-49805-CAEF97A5 for ; Tue, 06 Feb 2018 14:14:52 -0500 Received: by mail-pl0-f52.google.com with SMTP id 36so1846182ple.13 for ; Tue, 06 Feb 2018 11:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZkkTZZH53959QL1BJ3jFC//JkTj3iF6UHGjnffzraeo=; b=fxIO+L5TKydSbzT3PqNK3U/X3rHywrUaphXVyayppJy69lFpvtJbg6OIF66nCitT/P YReCVokG2J183h+3B9O4nIH4Ozxco4OUNm8hBtfauzeCEDNpBL7M1b3OCQazU+qW5FQW gVow180xTp3FZT5j+6Of3XmcZBsqBX5paaSRVClNLOy9U0LkqyYN3Q2aaoUG0lALGKHa +LMaquWO5r8JDWKMzZl25ZJNy9xEa9PzsWmmAF0b4/FYtOtkwXVKgOyL5yETtdx4BT7f VRIT4qq3nr01hRNBfyfgXbkuY41f/tIP7/ZvzudaVIM4fu55/+ZJeYCxrV8H+H82UtJi ZXnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZkkTZZH53959QL1BJ3jFC//JkTj3iF6UHGjnffzraeo=; b=cxac/EIUP0n226wFsAiFc8LWVQUu8YRp9qVVQIRMrykMoQ7GURyanMbsVZSXYkDzTv pE6l3EAGV6oRQ0KGqsN7CXgGfZCOXtULKs3ZqW2MqN2Lt7PVRJvjzHwX+SB3tc81l/yM yEgMO5tuXjCdk0CdZGm+6ZMjKFsect74oLBLmhj1DJWtg4yOqih4JQEmtVAzaY9zepYq OvQZwMqlOBrRoGXuVi7IUxhqMpI2qIRkCpNIbRmyhYWIoSxpRMBVSjQXGLnSHqpp6WIH wDCvjdeZcvdShcl5/5Xt+hED9YEpjsjaNIb97yscxkVsL65P/KnldJ77x2asVJg1hWWb EUSw== X-Gm-Message-State: APf1xPAggFZXbvNpg4lSzcd0+esgaxPhQBxFYnPLJtwSDKSujmsPMJsx a0xEsjD04xBR6c+vUGU8HLu2EUc= X-Google-Smtp-Source: AH8x225CQiBDVKpRHAFqcp5Yi7uWaeDnc0DS5YzToUGnqDCQWG3cDr+uTBeSUDshycRD1JhN4r6P/g== X-Received: by 2002:a17:902:595d:: with SMTP id e29-v6mr3445024plj.436.1517944488603; Tue, 06 Feb 2018 11:14:48 -0800 (PST) Received: from Stas-Pro-2016.lan (c-73-71-144-171.hsd1.ca.comcast.net. [73.71.144.171]) by smtp.gmail.com with ESMTPSA id y13sm28474519pfj.96.2018.02.06.11.14.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 11:14:48 -0800 (PST) To: Benjamin Eberlei Cc: Wes , PHP Internals References: <07d9e3a0-d516-aa77-4818-ce8b02e8dd08@gmail.com> Message-ID: Date: Tue, 6 Feb 2018 11:14:46 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0) Gecko/20100101 Thunderbird/58.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Deprecation of fallback to root scope From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Yes we do have root namespace lookup, but its not automatic, it is only > as a fallback. This RFC is about removing the intermediate namespace'd > check, hence requiring \strlen. It is automatic, in the meaning you don't have to do anything to get it. Realistically, how often do you override strlen? If I say "never", I probably would be close enough for all practical purposes. > My idea was to force all function lookups into the global nameespace > first by doing the declare or use. This way someone writing a file could > state "i dont use namespaced functions in this file, don't try to load > them". Why? We already have this working, why make it harder by requiring to do specific things that we know upfront 99%+ people end up doing? Why not assume them by default? -- Stas Malyshev smalyshev@gmail.com