3 ms·
__destruct is not called when the reference count goes to 0? This is one of the (few) features I think PHP does better than C#.
by maxxxxx 9y ago
__destruct is not called when the reference count goes to 0? This is one of the (few) features I think PHP does better than C#.
- jakubmisek 9y agoAnd one of the features caused memory leaking in PHP for a decade. .NET has real garbage collection, we can take advantage of it.