[PHP-DEV] Bug #1959: multiple declared functions - no error From: sander <email protected>
Date: 08/04/99

From: sander <email protected>
Operating system: Linux
PHP version: 4.0 Latest CVS (04/08/1999)
PHP Bug Type: Parser error
Bug description: multiple declared functions - no error

Okay,

The initial reason for getting the latest CVS was an error where a script wouldnt include another script.

The page just stayed blank.

The new recompile didnt solve the problem, but I did find what caused it.

If an already declared function is declared again, no error message is generated.

A little script to demonstrate:

<script language="php">
        function foo()
        {
                echo "hello";
        }

        function foo()
        {
                echo "hello";
        }
        
        echo "check!";
</script>

Should output an error, but instead the page stays blank.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>