3 ms·
Eh, it doesn't matter that I know PHP. I don't want to use it and have barely touched it in the last few years, despite understanding many of its quirks. I'm st
by benatkin 4y ago
Eh, it doesn't matter that I know PHP. I don't want to use it and have barely touched it in the last few years, despite understanding many of its quirks. I'm still using WordPress at the moment but if I have to write PHP I might just quit using it.
Such a simple question as whether something is passed by reference or by value shouldn't result in "This is a super interesting piece of information! Looks like it's true; but I couldn' find any official documentation supporting this fact. We also need to know which versions of PHP support this lazy copy concept. Anyone has more info?" https://stackoverflow.com/a/9740541/3461 https://stackoverflow.com/a/9740541/3461
- PetahNZ 4y agoAre you asking what php version uses copy on write for arrays? If so, it's all of them (at least in the last decade). I have never known it not to do this.
- benatkin 4y agoNo, I'm not asking anything. I'm just saying that PHP doesn't have what I expect from a programming language and that I've chosen not to use it.
- unity1001 4y ago> which versions of PHP support this lazy copy concept The price of a dedicated cpu is down to under $4 /month in common web hosts. Meanwhile the IO and other performance also improved so much that you dont ever, ever notice such things. So nobody cares about that kind of stuff. That's overoptimization that nobody asked for.
- antifa 4y ago> Looks like it's true; but I couldn' find any official documentation supporting this fact. The same user found the documentation after they bothered doing an interesting modern technique called "looking for it". You'd have known that if you read the comment right after the one you copied.