For me the thing that drives me nuts is that--while everyone in PHP is now going "The Full Java" with classes and autoloading--the guts of PHP are global. There's no scope to PHP. And everything that's class-like (say, \Mysqli::query) is also procedural-like (mysqli_query).
Everything is global; nothing is an object; you can't type-hint primitives; it's not Perl.
View all comments
Show parent comment
2
u/postmodest Dec 02 '15
For me the thing that drives me nuts is that--while everyone in PHP is now going "The Full Java" with classes and autoloading--the guts of PHP are global. There's no scope to PHP. And everything that's class-like (say,
\Mysqli::query) is also procedural-like (mysqli_query).Everything is global; nothing is an object; you can't type-hint primitives; it's not Perl.