vrana Mon Apr 11 04:25:09 2005 EDT
Modified files:
/phpdoc/scripts check-trans-params.php
Log:
Ignore user-defined function protos
http://cvs.php.net/diff.php/phpdoc/scripts/check-trans-params.php?r1=1.1&r2=1.2&ty=u
Index: phpdoc/scripts/check-trans-params.php
diff -u phpdoc/scripts/check-trans-params.php:1.1
phpdoc/scripts/check-trans-params.php:1.2
--- phpdoc/scripts/check-trans-params.php:1.1 Mon Apr 11 04:07:12 2005
+++ phpdoc/scripts/check-trans-params.php Mon Apr 11 04:25:07 2005
@@ -57,7 +57,9 @@
$line_no_en = (substr_count(substr($file_en, 0,
$matches_en[1][$key][1]), "\n") + 1);
$methodsynopsis = $val[0];
$methodsynopsis_en = $matches_en[1][$key][0];
- if (!preg_match('~<type>([^<]*)</type>\\s*<methodname>~',
$methodsynopsis, $match)) {
+ if (preg_match('~<replaceable>~', $methodsynopsis)) {
+ // ignored
+ } elseif (!preg_match('~<type>([^<]*)</type>\\s*<methodname>~',
$methodsynopsis, $match)) {
echo "Return type not found in $filename on line " .
($line_no + 1) . ".\n";
echo ": source in $filename_en on line " . ($line_no_en
+ 1) . ".\n";
} elseif (!preg_match('~<type>' . preg_quote($match[1], '~') .
'</type>\\s*<methodname>~', $methodsynopsis_en)) {