tstarling added a comment.

Running ApiHelp::fixHelpLinks() on some sample HTML (from 
http://en.wikipedia.org/wiki/Main_Page) leaked quite nicely. Further isolated 
to this:

```
for ( $i =0 ; $i < 1000; $i++ ) {
  $doc = new DOMDocument;
  $doc->loadHTML($html);
  $xpath = new DOMXPath( $doc );
  $nodes = $xpath->query( '//a' );
}
```

The leak does not occur if $xpath->query() is omitted.

TASK DETAIL
  https://phabricator.wikimedia.org/T820

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

To: tstarling
Cc: wikibugs-l, tstarling, ori, MZMcBride



_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to