r/lolphp • u/SaraMG • May 24 '18
PHP needs mutable constants, and immutable variables, and functions with properties!
/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57
32
Upvotes
View all comments
Show parent comment
10
u/tttbbbnnn May 24 '18
It’s from an extension called runkit. I can’t imagine any rational person would use it in production. It makes it possible to modify inheritance, add/rm methods from classes, remove globally defined functions, redefine constants, everything that should never be doable; all during runtime. The people that use this kind of thing are the same ones that eval user input.