Edit report at https://bugs.php.net/bug.php?id=16979&edit=1

 ID:                 16979
 Updated by:         ni...@php.net
 Reported by:        lazybrain at rcn dot com
 Summary:            nested function in functions within a class
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   bsd
 PHP Version:        4.1.2
-Assigned To:        
+Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Closing as this already works.


Previous Comments:
------------------------------------------------------------------------
[2002-08-12 13:57:31] ahristov at icygen dot com

AFAIK this code could work. I've written some code this way but the user has to 
guard the definition of the function somehow or on the second call os test1 
there will be fatal error.

------------------------------------------------------------------------
[2002-05-02 18:29:41] lazybrain at rcn dot com

It would be helpfull to be able to 
use nested functions inside a function thats in a class.

For example...

clase something {

 function test1() {
  do something here

  // quick function to make code smaller
  function test2() {
   do more here
  }
 }

 
}


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=16979&edit=1

Reply via email to