PHP 4.4.1 で phpDocumentor の出す Notice を黙らせる

リファレンス関係の Notice があまりにうるさかったのでサクッとパッチ。
人力で機械的に(なにそれ)やったので、もしかしたらどこかでバグッてるとかメモリの無駄遣いとかしてるかも。

diff -u c:\temp\phpDocumentor/Classes.inc c:\xampp\php\pear\PhpDocumentor\phpDocumentor/Classes.inc
--- c:\temp\phpDocumentor/Classes.inc	2004-04-02 20:58:12.000000000 +0900
+++ c:\xampp\php\pear\PhpDocumentor\phpDocumentor/Classes.inc	2005-11-24 12:20:44.875000000 +0900
@@ -862,7 +862,7 @@
      * @param string $class
      * @param string $file
      */
-    function &getMethods($class, $file)
+    function getMethods($class, $file)
     {
         if (!isset($this->methodsbyfile[$file][$class])) return false;
         return $this->methodsbyfile[$file][$class];
@@ -874,7 +874,7 @@
      * @param string $class
      * @param string $file
      */
-    function &getVars($class, $file)
+    function getVars($class, $file)
     {
         if (!isset($this->varsbyfile[$file][$class])) return false;
         return $this->varsbyfile[$file][$class];
@@ -886,7 +886,7 @@
      * @param string $class
      * @param string $file
      */
-    function &getConsts($class, $file)
+    function getConsts($class, $file)
     {
         if (!isset($this->constsbyfile[$file][$class])) return false;
         return $this->constsbyfile[$file][$class];
@@ -946,7 +946,7 @@
      * @param string $class classname
      * @param string $package package classname is in
      */
-    function &getClassByPackage($class,$package)
+    function getClassByPackage($class,$package)
     {
         if (!isset($this->classesbynamefile[$class]))
         {
diff -u c:\temp\phpDocumentor/Converter.inc c:\xampp\php\pear\PhpDocumentor\phpDocumentor/Converter.inc
--- c:\temp\phpDocumentor/Converter.inc	2004-04-10 12:06:48.000000000 +0900
+++ c:\xampp\php\pear\PhpDocumentor\phpDocumentor/Converter.inc	2005-11-24 12:21:22.515625000 +0900
@@ -3460,7 +3460,7 @@
      * @see getPageLink(), getDefineLink(), getVarLink(), getFunctionLink(), getClassLink()
      * @see pageLink, functionLink, defineLink, classLink, methodLink, varLink
      */
-    function &getLink($expr, $package = false, $packages = false)
+    function getLink($expr, $package = false, $packages = false)
     {
         // is $expr a comma-delimited list?
         if (strpos($expr,','))
@@ -3485,14 +3485,14 @@
                 return Converter::getLink($a[1],$a[0],array());
             }
         }
-        $a = &$this->_getLink($expr, $package, $packages);
+        $a = $this->_getLink($expr, $package, $packages);
         return $a;
     }
     
     /**
      * @access private
      */
-    function &_getLink($expr, $package = false, $packages = false)
+    function _getLink($expr, $package = false, $packages = false)
     {
         if (!$package) $package = $this->package;
         // 
@@ -3667,7 +3667,7 @@
      * do not use or override, used by getLink
      * @access private
      */
-    function &getLinkMethod($expr, $class, $package)
+    function getLinkMethod($expr, $class, $package)
     {
         $links = &$this->links;
         do
@@ -3718,7 +3718,7 @@
      * do not use or override, used by getLink
      * @access private
      */
-    function &getLinkVar($expr, $class, $package)
+    function getLinkVar($expr, $class, $package)
     {
         $links = &$this->links;
         do
@@ -3768,7 +3768,7 @@
      * @access private
      * @since 1.2.4
      */
-    function &getLinkConst($expr, $class, $package)
+    function getLinkConst($expr, $class, $package)
     {
         $links = &$this->links;
         do
diff -u c:\temp\phpDocumentor/ParserElements.inc c:\xampp\php\pear\PhpDocumentor\phpDocumentor/ParserElements.inc
--- c:\temp\phpDocumentor/ParserElements.inc	2004-02-07 10:33:56.000000000 +0900
+++ c:\xampp\php\pear\PhpDocumentor\phpDocumentor/ParserElements.inc	2005-11-24 12:09:17.406250000 +0900
@@ -860,7 +860,7 @@
      * @param Converter this function will not work before the Conversion stage of parsing
      * @return mixed returns the {@link parserClass} representation of the parent class, or false if no parent class
      */
-    function &getParent(&$c)
+    function getParent(&$c)
     {
         if (!$this->parent) return false;
         if (is_array($this->parent))
@@ -1906,4 +1906,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>