PHP 4.0 Bug #3923: User defined functions being cached?

From: Date: Sat, 25 Mar 2000 16:13:04 +0000
Subject: PHP 4.0 Bug #3923: User defined functions being cached?
Groups: php.dev 
Request: Send a blank email to php-dev+get-17212@lists.php.net to get a copy of this message
From: ejulrich@dynamic-dns.com Operating system: Win2000Srv IIS5 PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Scripting Engine problem Bug description: User defined functions being cached? 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.

« previous php.dev (#17212) next »