vrana Mon Apr 4 12:20:00 2005 EDT
Modified files:
/phpdoc/scripts check-references.php
Log:
<parameter>& is obsolete
http://cvs.php.net/diff.php/phpdoc/scripts/check-references.php?r1=1.11&r2=1.12&ty=u
Index: phpdoc/scripts/check-references.php
diff -u phpdoc/scripts/check-references.php:1.11
phpdoc/scripts/check-references.php:1.12
--- phpdoc/scripts/check-references.php:1.11 Fri Nov 19 05:17:56 2004
+++ phpdoc/scripts/check-references.php Mon Apr 4 12:20:00 2005
@@ -67,6 +67,8 @@
"msg_receive_args_force_ref" => array(3, 5, 8),
"all_args_force_by_ref" => 1,
"all_args_by_ref" => 1,
+ "http_request_info_ref_3" => array(3),
+ "http_request_info_ref_4" => array(4),
);
$valid_types = "int|float|string|bool|resource|array|object|mixed|number";
@@ -240,10 +242,10 @@
// references
$source_ref = (isset($source_refs[$function_name]) ?
$source_refs[$function_name] : null);
- preg_match_all('~<parameter( role="reference")?>(&)?~S',
$methodsynopsis, $matches);
+ preg_match_all('~<parameter( role="reference")?>~S',
$methodsynopsis, $matches);
$byref = array();
foreach ($matches[1] as $key => $val) {
- if ($val || $matches[2][$key]) {
+ if ($val) {
$byref[] = $key + 1;
}
}