Page MenuHomePhabricator

Do not call mLinkHolders __destruct explicitly
Closed, ResolvedPublic

Description

simple patch

Calling $this->mLinkHolders->__destruct(); explicitly is incorrect because it sometimes leads to strange errors. I can't tell exactly which errors... :) because our wiki distribution (wiki.4intra.net) is patched manually since 1.13 :)
I think you should use unset( $this->mLinkHolders ) and let PHP run the destructor.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz28719

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:27 PM
bzimport set Reference to bz28719.
bzimport added a subscriber: Unknown Object (MLST).

Makes sense to me, we're using unset() beneath that

Thanks

r87039