PEAR phpDocumentor

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm trying to use phpDocumentor, but I keep getting this error when I
run phpdoc:

Fatal error: Cannot re-assign $this in
/usr/lib/php/PhpDocumentor/phpDocumentor/ on line 238

I looked in and, indeed, found this code:

function getLink(&$c, $text = false, $returnobj = false)
   if ($returnobj)
   { /// !!!! crazy stuff, this PHP business
     $save = $this;
     $this = &$c;
     $a = Converter::getGlobalLink($save->name,
$save->docblock->package, $save->path, $text);
     $this = &$save;
     return $a;
   return $c->getGlobalLink($this->name, $this->docblock->package,
$this->path, $text);

Reassigning $this is, I believe, illegal.

Gentoo Linux
php-5.0.3 (gentoo ebuild: php-5.0.3-r1.ebuild)
PHPDocumentor 1.2.3

Has anyone else had this problem or have a solution?


Re: PEAR phpDocumentor

Pingveno wrote:
Quoted text here. Click to load it

Did you report this to PHPDocumentor?

I took a quick look at their SourceForge site and it has been reported
as a bug (but nothing done on it yet).

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: PEAR phpDocumentor

Jerry Stuckle wrote:
Quoted text here. Click to load it
I certainly haven't done any reporting. I'll take a look at the bug
report, and see if I can do anything to help (or downgrade). Thank you!


Site Timeline