Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106591 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71632 invoked from network); 14 Aug 2019 12:43:14 -0000 Received: from unknown (HELO mail-wm1-f41.google.com) (209.85.128.41) by pb1.pair.com with SMTP; 14 Aug 2019 12:43:14 -0000 Received: by mail-wm1-f41.google.com with SMTP id p74so4068543wme.4 for ; Wed, 14 Aug 2019 03:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=HvybcgbU4VMNAMIzyXKdXEIURHFaX+rncCRhuE+dZ7I=; b=sL1zKBiXq0qb/EWnPG5E75dCXF4/eHBB00TbNpDxNAuvsf+Q4FuUJO9GQqXCS/zfAe Yl7dMI3jvcVkClAyhXBCUJV3NYrseKdrIxzVOaEIrdns3obx/LQ2zkcQwZAhfOR7ZvQi cnmBVdw6BJCN+f1S/YytzH+46eauX1yW/bsRl1UiZDqBaOZSfgC9u/VVG72/RE1Ho0GM E6eAxF7H8391MBW1IurFkhM142/k41WYaJ3JP0xsnPTlKob0BsZInZYtZmIAgPzwlHHv e+tNI5wBP1j9oBzklqxl2h6WWgrkJnJduMH4ur8E2u/XkUiKEn/vKXZfPStMdKg86w7F AdCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=HvybcgbU4VMNAMIzyXKdXEIURHFaX+rncCRhuE+dZ7I=; b=HCGWuoGMfhvCV4JW2rk4ymWMUTc/QajQDn6G9O7yYES5RYNOykK/fkLBjYC1o7ljO7 EDCWXRXUnAqF1pZGumq3Hu/pRthED5AWQuxD1ZmvWF8Vkfac9Nj/jlH7uuXAwk4a/nET jK6mBiiSfa6suWVTYlyRXy2PncTgNRCvHST7zPBu+Udik6R4jNHUzIehNHrm27se+biE KiNXFabJARH8wZEkf4IR+yH9K/JxzzWppcK3/ON1Ivl0mSYIUaz4fU/cOTpyY+IkWxv1 hV5GNLuZOOi4peFGE/Ijug2uHf6lvSZLovwJdZU+3WxB+fxiW8GkcAPciiqro7uiAQbo 3pow== X-Gm-Message-State: APjAAAX3nKy8eQuesttvs6HqaJpeoPvzDehfMRgSgnsmaRSgm8Eo1eRt Gn2bb5TEGDClpSYIUk9oUi9AQZDC X-Google-Smtp-Source: APXvYqzb2s6C6KQtZ6KF2k4OQGsHPI/s2LJNWpqrFap6V9cGgq+LuWUz5ll/s3U+XqAcTqotk7iFwA== X-Received: by 2002:a05:600c:254a:: with SMTP id e10mr8039735wma.113.1565777510984; Wed, 14 Aug 2019 03:11:50 -0700 (PDT) Received: from [192.168.0.16] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id u186sm7536479wmu.26.2019.08.14.03.11.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Aug 2019 03:11:50 -0700 (PDT) To: PHP Internals List References: <25d774e8-183b-d39c-4ac4-81c1b7770229@gmail.com> <5d5298a5.1c69fb81.b4ed1.2d97SMTPIN_ADDED_MISSING@mx.google.com> <3db68c5e-54d1-812f-bbf5-1b089cba1bff@gmail.com> <5d52f72d.1c69fb81.8f95f.57a1SMTPIN_ADDED_MISSING@mx.google.com> <2bcb05d6-abf6-4fcb-599e-eaf4bcd58878@gmail.com> <182a6bd5-4057-7ba1-2cca-ab0be37e0b75@gmail.com> <72896017-20d0-16af-b188-8500777f947b@gmail.com> Message-ID: <00eea416-23be-6629-2e94-4cfa9f5fcb39@gmail.com> Date: Wed, 14 Aug 2019 11:11:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] Namespace-scoped declares, again From: rowan.collins@gmail.com (Rowan Collins) On 14/08/2019 11:07, MichaƂ Brzuchalski wrote: > Exactly so how would it know from string name either it should load class > from src/Foo.php or src/__nsmeta.php if there is no information? It wouldn't. It would include src/Foo.php, and that would have the definition of something with the name "Foo" - either a class, an interface, a trait, or a package. If it wasn't what the engine was expecting, it would be an error, just as it is right now if you write "implements ClassName", or "new TraitName();" Regards, -- Rowan Collins [IMSoP]