Issue Bug Closed

#17202PHP error on closedir() in class.t3lib_tcemain.php

J©rémy Lecour 04/12/07, 15:20 updated 06/27/08, 10:51

Description

I have a PHP error because of bad use of the function closedir() > http://php.net/closedir

The argument chould be a handler and not the path of the dir itself.

It’s triggered in the brand new “internal_clearPageCache()” function.

It can be corrected by changing
6222 : closedir($cacheDir);
into
6222 : closedir($topDir);

$topDir is the handler from @opendir($cacheDir) on line 6208

(issue imported from #M5411)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.