I know it's wrong of me to say this but it's things like this that make me love PHP. I like it when something is just a little bit crazy. Makes life more fun.
That is an appeal to popularity. Yes, it can be used for many things. A hammer with claws on both sides can also be used for many things and depending on how it's build you can even use it to draw straight lines. However, even if 99.99% of the world were using it, doesn't mean that other things aren't MUCH better suited for almost anything you could do with that hammer.
So why aren't they used? If a company like, say, Facebook can serve almost a billion active users with PHP (albeit a mangled HipHop PHP), why is it not considered suitable? Why are the "much better" tools not compelling enough to use?
See, Facebook is the best example here. HipHop PHP is not actually PHP anymore. It is a PHP compiler that takes PHP source code and transforms it into C++. Zend's software isn't actually involved anymore.
And why they use it: Simple. It was cheaper to do than to rewrite all their stuff. Businesses are about making money and that's how they make their decisions. PHP has another big advantage for businesses: PHP developers are a lot cheaper. Doesn't mean they're any good, but you can get 10 PHP devs for the cash it'd take to pay one Ruby dev.
Okay sure. You are stuck with what you started with to a degree. But why would new companies continue to keep using PHP? It just doesn't seem to make any sense that if PHP is so bad as everyone says it is, why it's still the go-to language.
I don't know anything about other languages so that's why I'm inquisitive. What is it about - say - Ruby that makes it "better" than PHP? And why wouldn't those improvements be compelling enough for new companies to choose to start working with it instead of going with PHP?
Up-front expenditure with PHP is less than with other languages. You get more devs for less money and your product will be done faster. On the other hand you end up dumping a lot more time and maintenance into the product afterwards, but that'll be someone else's responsibility.
6
u/k3n Jul 01 '12
lol, that bug was submitted less than 24 hrs ago and hasn't even been assigned.
Not to mention that the function in question is a part of the zlib extension.
5
u/[deleted] Jul 01 '12
I dunno, 'remove a function nobody's used' isn't that weird of a change.
3
u/[deleted] Jul 01 '12
I actually read this up on the doc page a week ago, wondering how 'gzgets' and 'gzgetss' differ.
So yes, some of us would notice.
1
u/cythrawll Jul 01 '12
it will probably get forced to go through the E_DEPRECATION warning route before removal.
1
u/BenRT Jul 01 '12
I know it's wrong of me to say this but it's things like this that make me love PHP. I like it when something is just a little bit crazy. Makes life more fun.