Bumping to add some more information, after discovering this bug myself.

The following examples of PHP code are functionally equivalent:
function bar3()
{
  // One thing
}

class Foo
{
  function bar1()
  {
    // Something
  }
  function bar2()
  {
    // Anything 
  }
}
---------------
class Foo
{
  function bar1()
  {
    // Something
  }
  function bar2()
  {
    // Anything 
  }
}
function bar3()
{
  // Other thing
}

...with functions bar1() and bar2() are child members of class Foo; bar3() is
global.

BUT, in the second example the Code Explorer window will display bar3 inside the
class Foo (which it's not), while in the first case the Code Explorer will
display bar3 under "Functions" (which it is).  In other words, the Code Explorer
acknowledges where a class definition begins but not (always) where it ends.

One PHP script file I work on has about 10 classes and 100 global functions
defined, and because the class definitions are placed roughly in the middle of
the file, the Code Explorer sorts about 1/4 of them as members of the nearest
defined class instead of as a global function.

-- 
<http://forum.pspad.com/read.php?2,45310,46318>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem