php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1959 multiple declared functions - no error
Submitted: 1999-08-04 11:09 UTC Modified: 1999-09-02 21:38 UTC
From: sander at pilon dot com Assigned:
Status: Closed Package: Parser error
PHP Version: 4.0 Latest CVS (04/08/1999) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sander at pilon dot com
New email:
PHP Version: OS:

 

 [1999-08-04 11:09 UTC] sander at pilon dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-02 21:38 UTC] zeev at cvs dot php dot net
Your error_reporting directive isn't set to display compilation
errors.  Note that in PHP 4.0, if you override the error_reporting
values with low values, you may turn off several new error categoties,
such as the compilation errors.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 23:01:30 2024 UTC