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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 02:01:38 2025 UTC