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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 12:01:31 2024 UTC