Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43673 invoked from network); 11 Dec 2017 09:29:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Dec 2017 09:29:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wm0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:38600] helo=mail-wm0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/AB-53433-BEF4E2A5 for ; Mon, 11 Dec 2017 04:29:16 -0500 Received: by mail-wm0-f51.google.com with SMTP id 64so12737954wme.3 for ; Mon, 11 Dec 2017 01:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=o143f8lyStrG54k6NiadMZ1guuwwtokvSfgckImky+A=; b=mhDTYjqBEkzVBfDH27DA9lxZyZZOKcSDr7p6I7/rwFuK2PAiEKtCEFLn5nrQF1YQ42 h0G061bHxXSlIfUlUbNOT75gnHNtRMKKNeU/z9iP/4VnFWipFDRemBGM2KRPhZFIeYz1 RJz23E+la5NBdwa80RNi+SNvnZHWzmfBn6JxmOKy20VRGx4VkNBj5MVkrBs1Ig3GdKB5 7ghLes9ThKhB+hi43CHoC1Og0Os97lCIAseUwVOa0H9Mv4W8wzX1IVWJihdhIv61rN7R 4cHDROGwO5YdymwqcZXq3kHoK8bhUbgwftMWQZKgX9Lhr0UpZFRmvqJSxydO/iWEwDVu hzhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=o143f8lyStrG54k6NiadMZ1guuwwtokvSfgckImky+A=; b=l7VQzMKP9xXlgqLpV9OESHyciubke73MVcAQSjjj8I1NkifOVIuk/krEvNpPeAlwCr Hc/H7zGfWcXvqmkHdcj4+Vw5W0dfacbp5ZMar1MNuB3AhGN0M9qTrhoHe1WZCljDykd4 oapQKy7VQTrAq4MrMnTNfz9pZCKCwzDZkmqNyDykp43u7aHnOx6VVIT/p+vgZj2Q1nKe MdJ3rxN2O0O85RDBjporeXVr2IlWCcP3VQUNx4QL/CUnN9bhY4LWNw1pvcrq0kkWEum/ 1oC2uIAjj0JX+ISbpIYqHBAlPTYm+XlS5mahlt7tT50J4Ae+NDagYoS0jKhhcuWrrZnd IQ9A== X-Gm-Message-State: AKGB3mI6cc9BY56un8dnM0KRjz4FLWXvBVVe/vYuYTJLEY9BuX7HgQGB dyoaY+yoWB7e+OQ8HN5zg3R6e4NqS84iFQJWBT1BfQ== X-Google-Smtp-Source: ACJfBosTRMKEPcVuDdcYWUSHQ11sPA2D38slUQEt+16/VaVtKtfoYdNKebmYe6CbSMmnabk4GLg/igXUYUcjvFDy424= X-Received: by 10.28.168.133 with SMTP id r127mr161004wme.83.1512984552648; Mon, 11 Dec 2017 01:29:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.184.205 with HTTP; Mon, 11 Dec 2017 01:28:52 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Dec 2017 10:28:52 +0100 Message-ID: To: Andreas Hennings Cc: PHP Internals List Content-Type: multipart/alternative; boundary="001a114cc6c4cfb7ba05600d2afd" Subject: Re: [PHP-DEV] Reflection API: Add ::getFullName() method. From: ocramius@gmail.com (Marco Pivetta) --001a114cc6c4cfb7ba05600d2afd Content-Type: text/plain; charset="UTF-8" Weird, that looks wrong to me, so I may be wrong here. When receiving a string containing a symbol, the only sensible approach is to consider it a FQN, as no context is provided with the string. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Mon, Dec 11, 2017 at 10:23 AM, Andreas Hennings wrote: > On 11 December 2017 at 10:16, Marco Pivetta wrote: > > On Mon, Dec 11, 2017 at 10:03 AM, Andreas Hennings > > wrote: > >> > >> On 11 December 2017 at 09:16, Marco Pivetta wrote: > >> > If you really want to expose a symbol's FQN, > >> > >> Just to clarify: For me, "FQN" means "fully-qualified name", which > >> begins with "\\". > >> This is specifically not what I propose here. I want the name without > >> the leading namespace separator. > >> So maybe "getFullName()" is misleading. > > > > > > A FQN does not start with `\`. In strings, you always use the FQN > > I was following the FQN definition from php-fig group like here, > > https://github.com/php-fig/fig-standards/blob/master/ > accepted/PSR-4-autoloader.md > > Maybe this is wrong? > --001a114cc6c4cfb7ba05600d2afd--