> ID: 9064
> Updated by: hholzgra
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Closed
> Bug Type: Scripting Engine problem
> Assigned To:
> Comments:
> php has no "nested function" feature like you'll find in PASCAL
> or in gcc if you enable the feature
> what happens here is that test2 is registered on execution of
> test in the global namespace, and when you call test a second time
> it cannot register test2 again
> (the engine shouldn't  accept nested functions at all i think)

why not - imagine the case you want to define a function with an
eval('function body here');
at i am using this feature - i have a project with many long functions and
do not need them in all logic paths. i define (let php parse) them on demand
and this is faster. i have tried to have functions in separate files but
this is slower than having all of them into array and etc.


PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to