php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3923 User defined functions being cached?
Submitted: 2000-03-25 11:13 UTC Modified: 2001-04-29 12:09 UTC
From: ejulrich at dynamic-dns dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Win2000Srv IIS5
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: ejulrich at dynamic-dns dot com
New email:
PHP Version: OS:

 

 [2000-03-25 11:13 UTC] ejulrich at dynamic-dns dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-30 12:25 UTC] 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-08-15 09:43 UTC] waldschrott@php.net
this is a dup
 [2001-04-29 12:09 UTC] jmoore@php.net
this should be fixed in CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 05:01:27 2025 UTC