12.2. check-references.php

This script tries to parse the PHP sources and compares the facts about function parameters (their count, types, optionality and the need of passing them as reference) with the documentation. Only easy parsable functions from Zend, extensions, PECL and SAPI sources are checked.

Used rules are not absolutely precise, they are rather heuristics. Thus not everything printed automatically denotes errors and sources should be always read by a human before modifying the documentation. If the sources correspond to the documentation and this script still produces error, function should be added to one of $difficult_* arrays defined in the beginning of this script.