ID: 13616
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Suspended
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0CVS-2001-10-09
Assigned To: ssb
New Comment:
Seems to be fixed in PHP 4.3.0-dev.
Previous Comments:
------------------------------------------------------------------------
[2001-10-17 17:35:04] [EMAIL PROTECTED]
I worded that poorly, It in fact does not do the zend_hash_add the
second time, thus keeping a function from ever being added twice.
------------------------------------------------------------------------
[2001-10-17 17:34:09] [EMAIL PROTECTED]
I have a zend_compile.c that will allow the same function from the same
file too pass through with a NOTICE rather than a fatal ERROR. Is this
of interest to anyone? It is a good interim solution I think.
------------------------------------------------------------------------
[2001-10-17 11:53:43] [EMAIL PROTECTED]
This turns out to be due to another bug fix (9884), and will probably
end up being documented as a compatibility breaker in 4.1.0.
I recommend that you use include_once instead.
------------------------------------------------------------------------
[2001-10-11 20:20:06] [EMAIL PROTECTED]
Example can be reduced to:
test.php:
<?php
function foo() {}
include "test2.php";
?>
test2.php:
<?php
return;
function foo() {}
?>
------------------------------------------------------------------------
[2001-10-10 14:40:32] [EMAIL PROTECTED]
Reproduced with latest dev from php4win.com (04-Oct-2001).
------------------------------------------------------------------------
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/13616
--
Edit this bug report at http://bugs.php.net/?id=13616&edit=1