Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89629 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50115 invoked from network); 4 Dec 2015 19:28:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2015 19:28:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain paragonie.com from 209.85.217.180 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.217.180 mail-lb0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:36521] helo=mail-lb0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/06-09187-449E1665 for ; Fri, 04 Dec 2015 14:28:05 -0500 Received: by lbblt2 with SMTP id lt2so26473647lbb.3 for ; Fri, 04 Dec 2015 11:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragonie-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DCNLTotiZY860eYLkDZtfy6hzT5mRc2irvp21QPELcE=; b=GBU6XSU+depK9zHccOW1DBuP4tOmpUeAvVPFpVFLgnWk0cyVgj2EwKfyoI7g2mWF/9 N8LLcUEm8lkkoo8MO75CGveXxeGNFPMOpLVk63xlNPHd8WiiK0UPLsRstBQI8nv7+zoR PHbQgHe5DDrGfofkOrRqDYkqGwOn9NLvKGIUIA2Zh1+ZpfBz4/LvPNfyArsavgVYRni1 51Ow+dttW8HL7We3Q9tC73lIqcZZ+Sx7ECmSOLbwhgNu/yn/Y9iDthetPZPP9I6coo10 o0nTj3yUGiZ2xYf1NRGqSOxofCxlMaqtcw7yOx2jWpBPLg0YIdz+o4dEfsuooLaWsDMn DVcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=DCNLTotiZY860eYLkDZtfy6hzT5mRc2irvp21QPELcE=; b=CzEfyn/njiCHSSCuiC3JLqk/ONoxKkkVBnriDg8YSyBpGjmmY59NUhzH0OK2anXzNe LavTqMNhrj8Yr9NlVJahA3JU1sIuL2R3NNbE2XUrBsXbfnmX7FCMncNQCjH7dmADEtkB R3IAiUPrwf1JVNVQX5jUlOA/Cd1RktEcBOuu4JznS3VU5VOZlN3QHMHEpK0B3tFL1OPb BnBUCv44z6xIwGUJXa62VKV1MOWJnCgeXwgiR5AUr74rveFmpsTRv0diOPjh3i2OTM2l 02BXpmpttq0fEVcrVisSoZ7u+kU3WX0HqkaBRqxoWOAupnzqE/Qguatro+wPgF9TniDT iugw== X-Gm-Message-State: ALoCoQmRl1/UiIH+v7CMPqCeKEbydjrdTq+r4UAjnoHMi3nOeL7U0S9NMYDm4OmftRDTiap/oCzF MIME-Version: 1.0 X-Received: by 10.112.184.165 with SMTP id ev5mr8683715lbc.111.1449257282036; Fri, 04 Dec 2015 11:28:02 -0800 (PST) Received: by 10.114.237.230 with HTTP; Fri, 4 Dec 2015 11:28:01 -0800 (PST) In-Reply-To: <5661E881.70205@gmail.com> References: <5661E881.70205@gmail.com> Date: Fri, 4 Dec 2015 14:28:01 -0500 Message-ID: To: Stanislav Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c3c1ae7c06080526178120 Subject: Re: [PHP-DEV] Namespaces From: scott@paragonie.com (Scott Arciszewski) --001a11c3c1ae7c06080526178120 Content-Type: text/plain; charset=UTF-8 Stanislav, Anthony: Okay, I just wanted to make sure I wasn't overlooking an unintended behavior. I'm going to continue using \explicit_prefixing(). http://userjac.com/wp-content/uploads/2014/05/haters-gonna-hate-cool-dog.jpg Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises On Fri, Dec 4, 2015 at 2:24 PM, Stanislav Malyshev wrote: > 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 > --001a11c3c1ae7c06080526178120--