The node_type_get_types() function isshould be immutable. The test enviroment is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | node-corrected.patch | 1.36 KB | nevergone |
| #1 | node-corrected.patch | 1.39 KB | nevergone |
| node-test.patch | 943 bytes | nevergone |
The node_type_get_types() function isshould be immutable. The test enviroment is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | node-corrected.patch | 1.36 KB | nevergone |
| #1 | node-corrected.patch | 1.39 KB | nevergone |
| node-test.patch | 943 bytes | nevergone |
Comments
Comment #1
nevergoneComment #2
nevergonecorrected patch (permission error)
Comment #3
chx commentedComment #4
dries commentedWhile technically correct, I wonder if this needs fixing. We probably return a lot of variables that probably should be made immutable. That said, I'm not opposed to this patch but it might warrant some extra discussion.
Comment #5
catchAgreed. As far as I know, every cloned variable leads to double memory consumption, also this is a duplicate of #154859: Document that cached entity objects are not necessarily cloned any more.
Comment #6
nevergonesimple test environment, create 5 node: