Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101753 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56556 invoked from network); 3 Feb 2018 16:31:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2018 16:31:31 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:33743] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/70-49805-2E3E57A5 for ; Sat, 03 Feb 2018 11:31:30 -0500 Received: by mail-wm0-f52.google.com with SMTP id x4-v6so6966448wmc.0 for ; Sat, 03 Feb 2018 08:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=rhWxJe96tHpAFWSgTJOeRsCUAejwkLAbWn6RP847RME=; b=tTdW+ovDpHPZ+AgRw3csMoGxnRLoHQjvIwZDYyBgVAvzI2Llmh6a8/DmCCeIQqfl0w Vd+6TRjKTM2q7ytwnAyH4qhzXVxL8BJNxQK9DCjosQnq0VoYxwoYw2KXaV5beSjNvWJ6 V2w01Fdx/QR56piVQ7LjPc4SjmLJ2MOyUnfoS/K8/YorAKVv9sakE3sZI4l4zanXHMDc EFjIR5dQfy12Mq0WcZ74VLr8sdaoxsjef6QXfQ8ahYHwQljzKZ+g4jbjQpexwbVSRorm B6jxwo9zSw8beFzYlcWGwlf17TqyZvVzUdIHnFfHCq6ptFD2LA2qbYFhY60KImyt64Lk tNmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=rhWxJe96tHpAFWSgTJOeRsCUAejwkLAbWn6RP847RME=; b=M9PkEHuzDjHNRifF+otld6FVlE+AUBmB3jdWIRmXdUggYk4BFsqPsSxkIfCx5jnYPn /mnk3P+H0f3lR7VO/jL0XhLJOBDjSr0FtSMYHGhDpA9Wbd5hn5SY84ffdhyJGzs/nIwx A1agCBq53RIM3lYQRCuYX6KM9J8UdyNGreVU8l7L2UEpCaGZW5hHCvDPE0FYiyB4xD4M iL5B/sD3RuCfEa02EhBhpTuaQMc6ZkkAhdDcN55rNq4dUMOJ5Q9dXH0sQPMgwxX7cjTi lbebSQYCo1aiVefaUtyYVETKQKmJuCXcqOdcMO7Ep4KBG0aaU5R0ETaQgBecTz+FNTa/ dXYg== X-Gm-Message-State: AKwxytdGSxd1/v7yCfLknAxnTletf4NKzDxBx3UG6Mms3NFpqP7i60bP ySHV/H/blRmGqcV+JAipmPdPQiv+n1XmxNiuydQ= X-Google-Smtp-Source: AH8x225UCVsm9xCerDB4uhUQa7TBEO38iUNYIsO3dZjpGm2ZcxxgDkqV0VeTPWrfxmftj4ia8ss2vNsPzyHQueioQug= X-Received: by 10.28.134.140 with SMTP id i134mr36342144wmd.57.1517675487218; Sat, 03 Feb 2018 08:31:27 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.28.56.3 with HTTP; Sat, 3 Feb 2018 08:31:26 -0800 (PST) In-Reply-To: References: Date: Sat, 3 Feb 2018 09:31:26 -0700 X-Google-Sender-Auth: GTMuDZ24mzFBUzxDfeo7pJLsFOs Message-ID: To: Wes Cc: Niklas Keller , Marco Pivetta , PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Deprecation of fallback to root scope From: levim@php.net (Levi Morrison) On Sat, Feb 3, 2018 at 3:22 AM, Wes wrote: > No idea, I'm not really sure what's the difference between E_STRICT and > E_DEPRECATED. > Yeah the shim is just a rough POC (completely forgot that define() can > define in namespaces). > Nicolas Grekas on twitter also suggested that we should introduce > function_alias() that works like class_alias(). > With that the shim would be literally a couple of lines long. From our manual: > E_NOTICE : Run-time notices. Indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script. > E_DEPRECATED: Run-time notices. Enable this to receive warnings about code that will not work in future versions. > E_STRICT: Enable to have PHP suggest changes to your code which will ensure the best interoperability and forward compatibility of your code. In my opinion we should emit E_STRICT until we know when the feature will be removed. At that point we can promote it to E_DEPRECATED and specifically cite when it will be removed. In any case, E_NOTICE does not seem appropriate.