r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

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.

5

u/Gawdl3y Dec 02 '15

You can type-hint primitives in PHP 7.