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!
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.
Admin Admin wrote:
first of all https://wiki.php.net/start?do=register seems broken, the form
submit just returns to the form.
You have to enter the email address of this mailing list into the fourth
field of the form.
--
Christoph M. Becker
You have to enter the email address of this mailing list into the fourth
field of the form.
Just gave that a try, no error message. still goes back to the form.
Admin Admin wrote:
first of all https://wiki.php.net/start?do=register seems broken, the
form
submit just returns to the form.You have to enter the email address of this mailing list into the fourth
field of the form.--
Christoph M. Becker
Admin Admin wrote:
You have to enter the email address of this mailing list into the fourth
field of the form.Just gave that a try, no error message. still goes back to the form.
Indeed there is a bug with regard to the messages. I have submitted a
PR (https://github.com/php/web-wiki/pull/4).
--
Christoph M. Becker
Thanks after seeing a PR with the correct wording, I finally understood
what I needed to put in that last field. I feel like a robot.
Also my wiki username for the internals list is: cminick
Thanks for your help!
Admin Admin wrote:
You have to enter the email address of this mailing list into the fourth
field of the form.Just gave that a try, no error message. still goes back to the form.
Indeed there is a bug with regard to the messages. I have submitted a
PR (https://github.com/php/web-wiki/pull/4).--
Christoph M. Becker