_filecleanup() problems
Robin P. Blanchard
Robin_Blanchard@gactr.uga.edu
Mon, 10 Dec 2001 13:58:01 -0500
No takers on the _filecleanup() problem?
:)
Summary: fresh install of latest head-CVS or RC tarballs yields working
install. Sometime later, horde is broken with:
Fatal error: Cannot redeclare _filecleanup() in
..../horde/lib/Horde.php on line 58
"Redeclare"? So I've tried to find out where all this call exists:
# find horde/ -type f -exec fgrep -H _fileCleanup {} \;
horde/lib/Horde.php:function _fileCleanup($filename = false, $register =
true)
horde/lib/Horde.php: register_shutdown_function('_fileCleanup');
horde/lib/Horde.php: _fileCleanup($tmp_file);
horde/docs/CHANGES:[cjh] Rename horde_cleanup() to _fileCleanup().
horde/turba/data.php:
_fileCleanup($HTTP_POST_FILES['import_file']['tmp_name']);
horde/kronolith/data.php:
_fileCleanup($HTTP_POST_FILES['import_file']['tmp_name']);
# find horde/ -type f -exec fgrep -H _filecleanup {} \;
# find /usr/local/lib/php/ -type f -exec fgrep -H _fileCleanup {} \;
# find /usr/local/lib/php/ -type f -exec fgrep -H _filecleanup {} \;
So that function only exists in Horde.php. I went ahead and moved turba
and kronolith out of the webtree just to see if their data.php files
were getting in the way. No luck.
I'm really confused as to how this thing works and then stops working on
its own. It would seem that since I can blow away the tree, reinstall it
and have it work (for a while), that the problem is related to the tree
itself. But how is it changing with time? Temp files? I haven't found
any temp files nor have I found any modified files.
Please help.
--
------------------------------------
Robin P. Blanchard
IT Program Specialist
Georgia Center for Continuing Ed.
fon: 706.542.2404 fax: 706.542.6546
email: Robin_Blanchard@gactr.uga.edu
------------------------------------