User "Hashar" posted a comment on MediaWiki.r88187. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88187#c17039 Commit summary:
Add check for evil, EVIL @ Comment: token_get_all() returns the line number as well since PHP 5.2.2. Look at /trunk/tools/code-utils/find-long-functions.php analyze_file() loads up the tokens for a file, filter out unwanted one. Then _analyze_tokens() loop through the tokens, line 87 you can see we get the line number in $token[2]. _______________________________________________ MediaWiki-CodeReview mailing list mediawiki-coderev...@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview