Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84913 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40250 invoked from network); 15 Mar 2015 21:09:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 21:09:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=admin@codeangel.org; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=admin@codeangel.org; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain codeangel.org does not designate 209.85.213.172 as permitted sender) X-PHP-List-Original-Sender: admin@codeangel.org X-Host-Fingerprint: 209.85.213.172 mail-ig0-f172.google.com Received: from [209.85.213.172] ([209.85.213.172:36600] helo=mail-ig0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/D8-31306-705F5055 for ; Sun, 15 Mar 2015 16:09:29 -0500 Received: by igbue6 with SMTP id ue6so26048153igb.1 for ; Sun, 15 Mar 2015 14:09:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=WwJpp9kLHSit1WDXDZGL73g4jp+NTZHNPMNsPkFqRNQ=; b=M0jGYUtQWoiqQbbcj4+waI8IGdThWDlQ8nAdd5Eiw5jiz9xJSe6JAwJojoiOXnWn6l gRFf+fDKX46JPvtvMS7TthEVPaKM6bu22jRo9j/iwQpGtjVStJY1MFwP+TW6hqyuDF7x llVcFg0/CRDB6EiCSMifBSBwnxQVSr0tTkfC2TEFCH+toH6mhOVm4PgbZWWE1QVEUv0T OmbDpsaFVqwySIkQL7YGq3hGFWAdtWJBgFZQWij0xeaqyDAxVlFxAaasKmDdGNqDTzEu XOquqi7IayoOj2SUxt55r5O718rV6mbwnE8v4nmKGUmw8ofNvu4/kZyHqjxE9ktqDxZS BUpQ== X-Gm-Message-State: ALoCoQkC2u6D7cyuy41nufPy1lBREqG9VUjSOZugLS3q8zPdgHNm5RCb936Zcg7732pc9hSfB2rl MIME-Version: 1.0 X-Received: by 10.107.162.74 with SMTP id l71mr25888943ioe.77.1426453764247; Sun, 15 Mar 2015 14:09:24 -0700 (PDT) Received: by 10.107.147.197 with HTTP; Sun, 15 Mar 2015 14:09:24 -0700 (PDT) X-Originating-IP: [50.178.45.131] Date: Sun, 15 Mar 2015 16:09:24 -0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1140ca38e85b5b05115a25b1 Subject: RFC proposal, deprecate "String conversion" for undefined constants. From: admin@codeangel.org (Admin Admin) --001a1140ca38e85b5b05115a25b1 Content-Type: text/plain; charset=UTF-8 first of all https://wiki.php.net/start?do=register seems broken, the form submit just returns to the form. Second of all the crux of my proposal. As many of you know PHP will transform undefined constants into strings. "Assuming" you meant a string in bareword. I think there is a lot of danger here for state corruption and confusing results in code that can come out of this. Undefined constants should result in a fatal error. I propose we have a two step process to have a short deprecation process where we turn this notice: Notice: Use of undefined constant UNDEFINED_CONSTANT - assumed 'UNDEFINED_CONSTANT' in /in/966aq on line 3 INTO E_DEPRECATED adding "This behavior will result in a fatal error in the future" after which we turn the behavior into a FATAL error. I'll need some help with the patch. I took a look at it once, and since my C skills are abhorant, I found myself scratching my head at all the places that seem to throw the error message above and what each of them did. So if there is anyone that could volunteer and help me with this, that would be awesome! --001a1140ca38e85b5b05115a25b1--