3 ms·
I think "PHP Must Die" is a lot exaggerated, I think "PHP should be improved" is a better title!
by csomar 17y ago
I think "PHP Must Die" is a lot exaggerated, I think "PHP should be improved" is a better title!
- ThinkWriteMute 17y agoYes, but so much would have to be improved that starting off with a clean slate might be easier, yes?
- ryanwaggoner 17y agoWhat does "the slate" mean here? There's not one master language out there, so "killing PHP" means one of two things: 1. Using something else for an individual project (maybe a good idea) 2. Replacing all PHP with something else (impossible) Since a massive amount of the web runs on PHP, "starting off with a clean slate" would definitely NOT be easier. In fact, it would be impossible.
- docgnome 17y agoThe problem is most of the broken behavior in PHP is never going to be fixed because it would break compatibility.
- jacquesm 17y agoPrinting a warning would be easy enough, you could disable the warning if you want it to work like this. Leave that for one generation with a 'deprecated' attached to it, remove in the major release after that. Lots of things that were wrong have been changed like that. The biggest one remaining of the 'old' bugs which I think really would break too much is the strpos return value in case of no match (which is 'false' but 0 is a legal return value as well, -1 would have been a far better choice).
- jrockway 17y agoThe improved version of PHP is Perl. Which has been around longer than PHP...
- potatolicious 17y agoI write Perl daily - and sometimes I'd rather deal with PHP...
- jrockway 17y agoYou're doing it wrong.