#32791 [Fbk->Opn]: It cannot redeclare a function that has only been declared once.
| From: | MIKEYTF at aol dot com | Date: | Thu, 21 Apr 2005 15:49:47 +0000 |
| Subject: | #32791 [Fbk->Opn]: It cannot redeclare a function that has only been declared once. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78003@lists.php.net to get a copy of this message | ||
ID: 32791
User updated by: MIKEYTF at aol dot com
Reported By: MIKEYTF at aol dot com
-Status: Feedback
+Status: Open
Bug Type: *General Issues
Operating System: Windows 98
PHP Version: 4.3.9
New Comment:
Here is the complete config file:
http://subzer0.net/reloaded/cfg.inc.phps
I don't think I have any extensions, as I have never experienced this
problem before.
Previous Comments:
------------------------------------------------------------------------
[2005-04-21 17:34:20] tony2001@php.net
Again, please check that you don't have any of zend_extensions like
MMCache, ionCube, Zend Optimizer etc.
And your code works fine with all the latest 5.1, 5.0.x & 4.3.x
versions .
------------------------------------------------------------------------
[2005-04-21 17:26:07] MIKEYTF at aol dot com
<?php
function sys_msg($error,$exit) {
if($exit==0)
{
echo ''.$error.'';
} elseif($exit==1) {
echo ''.$error.'';
exit;
} elseif(!strlen($exit)) {
echo ''.$error.'';
}
}
if(isset($_POST['submit']))
{
sys_msg('You clicked the button!','0');
} else {
echo '';
}
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
<input type="submit" name="submit" value="Click Me" />
</form>
That's the shortest script I could make..
------------------------------------------------------------------------
[2005-04-21 17:19:58] sniper@php.net
How can we test if we don't know what to test?
Create the shortest possible test script you can
and add it here.
------------------------------------------------------------------------
[2005-04-21 17:13:05] MIKEYTF at aol dot com
You want me to give you guys the function so you could try it out
yourselves?
------------------------------------------------------------------------
[2005-04-21 17:00:56] tony2001@php.net
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 possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Please check that you don't have any of zend_extension's loaded.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/32791
--
Edit this bug report at http://bugs.php.net/?id=32791&edit=1