Last modified: 2010-01-12 07:24:51 UTC
The current documentation on /phase3/includes/MagicWord.php's function match(...) says: <code> /** * Returns true if the text contains the word * @return bool */ </code> But it doesn't return bool. It uses a simple preg_match() and therefore returns the number of matches. This isn't too bad if you have the code in front of you and know the behavior of preg_match() but screws up the doxygen documentation and is misleading. See documentation here for preg_match: http://us2.php.net/manual/en/function.preg-match.php (sorry that this is so small.. I haven't applied for commit access yet)
r59300
r60964