Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89628 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48490 invoked from network); 4 Dec 2015 19:24:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2015 19:24:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.179 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.179 mail-pf0-f179.google.com Received: from [209.85.192.179] ([209.85.192.179:34263] helo=mail-pf0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/A5-09187-788E1665 for ; Fri, 04 Dec 2015 14:24:55 -0500 Received: by pfbg73 with SMTP id g73so31174239pfb.1 for ; Fri, 04 Dec 2015 11:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=C+ppnbOkSuPMdDxzSG05F92Zu1zw7+GBqm8OX0fdMC4=; b=foQzv+hSw0QMvQNO6DxWqpRf3K0YOKkBd7nFV4nwt9tvybX8bk31bnJ3JARAwqGLhQ us8ww3o1qi6uDdXPXrfQBKrp1MQ+UNlX0O4n2nnbN9gCExW4JHFo4Xj/NeT4YmxUm1uS TzdRrkR/4SP79/8wkpSx8m6cV4o0KnZKPQ11JcayGQTKggjzi3jgIF0g5S/U9FcvTpwo tCtfBVEkJGyLY1Z7w3gr9VEgepb/LAntHrYelzGmXKqPYaBpDIimvDaaTBO4/z6JVuHp Gj6xpDs2fAWAbaVU/FrRPNobZ/RXjd1GZhik6GQOesKKlWuOUQbhUGmd3zxSb6VepebN cJ3w== X-Received: by 10.98.80.135 with SMTP id g7mr23967215pfj.83.1449257092169; Fri, 04 Dec 2015 11:24:52 -0800 (PST) Received: from Stas-Air.local ([2602:304:cdc2:e5f0:1979:435e:7c4d:3bc6]) by smtp.gmail.com with ESMTPSA id x79sm18701468pfi.47.2015.12.04.11.24.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Dec 2015 11:24:51 -0800 (PST) To: Scott Arciszewski , PHP Internals References: Message-ID: <5661E881.70205@gmail.com> Date: Fri, 4 Dec 2015 11:24:49 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Namespaces From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > It has been brought to my attention that my consistent use of \ prefixing > of global functions is an eyesore, but I've got a simple little PoC that > shows why I do it, and now I'm wondering if the behavior I'm working around > should qualify as a PHP bug? No, it's not a bug, it is a feature. You can override function in a namespace. It's still not a reason to mark every function you are not overriding with \. Unless, of course, you are importing foreign (as, not controlled by you) code into your namespace, in which case I think that's where the problem lies. -- Stas Malyshev smalyshev@gmail.com