Bug #1959: multiple declared functions - no error
| From: | sander at pilon dot com | Date: | Wed, 04 Aug 1999 15:09:48 +0000 |
| Subject: | Bug #1959: multiple declared functions - no error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9505@lists.php.net to get a copy of this message | ||
From: sander@pilon.com
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.