From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.2-STABLE
PHP version:      4.0.4pl1
PHP Bug Type:     Scripting Engine problem
Bug description:  Functions inside functions cause errors if the outer function is 
called twice.

This script fails with:

<b>Fatal error</b>:  Cannot redeclare test2() in <b>-</b> on line <b>4</b><br>

<?php

function test() {
        function test2() {
                echo "hi";
        }

        test2();
}

test();
test();
test();

?>


-- 
Edit Bug report at: http://bugs.php.net/?id=9064&edit=1



-- 
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