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!

Reply via email to