Re: RFC proposal, deprecate "String conversion" for undefined constants.
| From: | Leigh | Date: | Sun, 15 Mar 2015 21:36:38 +0000 |
| Subject: | Re: RFC proposal, deprecate "String conversion" for undefined constants. | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84927@lists.php.net to get a copy of this message | ||
On 15 March 2015 at 21:09, Admin Admin <admin@codeangel.org> wrote:
>
> 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!
>
Cursory glance:
http://lxr.php.net/search?q=%22undefined+constant%22&defs=&refs=&path=Zend&hist=&project=PHP_TRUNK
Ignore zend_vm_execute.h, it's a generated file.
The remaining E_NOTICE lines go to E_ERROR.
It is far too late for this to go into PHP 7, just FYI. I agree that if you
have an undefined constant, you have an error, but that is just my opinion.