ID:               46648
 Comment by:       crrodriguez at opensuse dot org
 Reported By:      satovey at yahoo dot com
 Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Win98
 PHP Version:      5.2.6
 New Comment:

XAMMP includes Zend Optimizer and possible other zend extensions,
please disable all zend extensions and report back if the problem still
exists.


Previous Comments:
------------------------------------------------------------------------

[2008-11-22 22:57:20] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2008-11-22 22:48:54] satovey at yahoo dot com

Description:
------------
PHP seems to think that a function is redeclared.

1) This is the first function declared.
2) This is not occurring with any other declared functions.
3) This error occurs even when the entire function is placed
on a single line.
4) The error occurs on this function call whether it is in
the given file or inside an include file.

Reproduce code:
---------------
This is the system
Win98 running the following.

Apache Version  
Apache/2.2.9 (Win32) 
DAV/2 mod_ssl/2.2.9 
OpenSSL/0.9.8h mod_autoindex_color 
PHP/5.2.6  
xampp version Version 1.6.7

Here is the error message.

Fatal error: Cannot redeclare getadminmodules() 
(previously declared in 
C:\xampp\htdocs\oldwebsite\YevotasSite\YevotasSite.php:26) 
in C:\xampp\htdocs\oldwebsite\YevotasSite\YevotasSite.php on 
line 26


Code for line 26 is as follows:
function getadminmodules(){}



Expected result:
----------------
The syntax is correct and therefore no errors are expected.



Actual result:
--------------
Fatal error occurs.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46648&edit=1

Reply via email to