Does php's copy on write work with arrays? Also if you could suggest a way to debug when a copy on write is happening that would be appreciated
Asked
Active
Viewed 70 times
-2
-
You're expected to [try to solve the problem first](https://meta.stackoverflow.com/questions/261592/how-much-research-effort-is-expected-of-stack-overflow-users). Please update your question to show what you have already tried in a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). For further information, please see [How to Ask](https://stackoverflow.com/questions/how-to-ask), and take the [tour](https://stackoverflow.com/tour) :) – Alive to die - Anant Mar 19 '21 at 05:55
-
2Does this answer your question? [Will copy-on-write prevent data duplication on arrays?](https://stackoverflow.com/questions/11074970/will-copy-on-write-prevent-data-duplication-on-arrays) – Top-Master Mar 19 '21 at 06:47
1 Answers
0
Does php's copy on write work with arrays?
Yes it does.
Yes, as long as no single byte is changed.

Top-Master
- 7,611
- 5
- 39
- 71
-
1If this is a duplicate of the other answer, please flag it as such. Don't post answes that only refer to another question – Nico Haase Mar 19 '21 at 06:50
-
d= (◕‿↼ ) This question is still worth answering (which I did in one line), the remaining is just additional resources (even if that link may answer the question indirectly). – Top-Master Mar 19 '21 at 06:59
-
1If you think that this is a distinct question, please add more details to your answer – Nico Haase Mar 19 '21 at 07:08