Date: 08/04/99
- Next message: Brandeis Alumni Relations Webmaster: "[PHP-DEV] Location string in headers vary with HTTP 1.0 and 1.1 as built by PHPLIB's session start()"
- Previous message: ritter <email protected>: "[PHP-DEV] PHP 4.0 Bug #1958: compile failure: undefined function in crypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Brandeis Alumni Relations Webmaster: "[PHP-DEV] Location string in headers vary with HTTP 1.0 and 1.1 as built by PHPLIB's session start()"
- Previous message: ritter <email protected>: "[PHP-DEV] PHP 4.0 Bug #1958: compile failure: undefined function in crypt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

