Bug #3923 Updated: User defined functions being cached?
| From: | jmoore@php.net | Date: | Sun, 29 Apr 2001 16:09:20 +0000 |
| Subject: | Bug #3923 Updated: User defined functions being cached? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52949@lists.php.net to get a copy of this message | ||
ID: 3923
Updated by: jmoore
Reported By: ejulrich@dynamic-dns.com
Old-Status: Duplicate
Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 4.0 Beta 4 Patch Level 1
Assigned To:
Comments:
this should be fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2000-08-15 09:43:34] waldschrott@php.net
this is a dup
---------------------------------------------------------------------------
[2000-07-30 12:25:38] zak@php.net
** Uneducated Guess Alert **
Install a recent release of PHP and current win2k/iis patches.
Once this is done, try turning ISAPI caching off.
Go to Internet Information Services -> Default (or whatever) Website -> Properties -> Home
Directory -> Configuration...
Then uncheck Cache ISAPI Applications
Please let me know if this works.
---------------------------------------------------------------------------
[2000-03-25 11:13:04] ejulrich@dynamic-dns.com
When I us a include like this:
<?
// Include new functions
include("func.php");
// Start timer
$starttime = microtimer();
?>
I get this result if you hit refresh on the the same page or go to a different page with the same
included functions I get this error printed to the client browser:
Fatal error: Cannot redeclare microtimer() in func.php on line 2
Here is my function in func.php:
function microtimer()
{
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
return ($mtime);
}
I also recompiled a snapshot from 2 days ago it did the same.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=3923&edit=2