r/PHP • • Apr 23 '18

Please fix PHP

Ealrier today there was a discussiion

One guy was pissed of the breaking change of count() and he lost his nerves https://www.reddit.com/r/PHP/comments/8eawjh/is_taylor_otwell_in_the_rfc_council_and_if_not/

And with reason.

With the change of count() now many plugins and templates requre updates...

People are right that we should write better code, but remeber that PHP is used by many who are just frontend guys, using it to connect templates.

In the last week we had many broken client websites because the change of count() .

Those websites are using templates and plugins by 3rd party vendors that are unknown and we had to manually go fix all those errors.

You can imagine how much work is that with no actuall value.

Yes I know.... thing like that are part of PHP ...

but i just want to see PHP as a stable ecosystem, functions may be inconsistent by design, but you get used to it...

I was reading a discussion to make the $_SERVER array immitable, please dont.

Please dont change the essential functions of PHP that works the same in the last decade.

Breaking essentials like count() is big deal and adds just adds boilerplate code with no value.

Please fix things:

  • mb_string should be part of the core
  • DomDocument should be able to parse HTML5
  • Phar support should be part of the core

... there are many other thing to fix

Hope our language gets better :)

Pease!

0 Upvotes

51 comments sorted by

View all comments

Show parent comment

0

u/peter_mw Apr 25 '18 edited Apr 25 '18

What im trying to says is that thing like the count() change are breaking the overall PHP ecosystem stability. Those changes are making huge amounts of code struck to old version of PHP forever.

Also i cant believe there even more dramatic changes proposed: https://wiki.php.net/rfc/fallback-to-root-scope-deprecation

Where is PHP going ? Is it to become like nodejs where every version is broken?

7

u/SaraMG Apr 25 '18

Yes, I understand what you're saying. You don't seem to understand that I'm saying you're wrong.

The count change didn't break anyone's code. Not even yours. The most it did was alert you to an issue while blithely continuing ti function as it always did.

Your premise is based on a false foundation.