diff -Nur --no-dereference File-1.4.1.old/File.php File-1.4.1/File.php --- File-1.4.1.old/File.php 2012-04-06 01:13:35.000000000 -0400 +++ File-1.4.1/File.php 2024-03-17 17:07:50.714000000 -0400 @@ -378,7 +378,7 @@ $filePointers = &PEAR::getStaticProperty('File', 'filePointers'); // unlock files - for ($i = 0, $c = count($locks); $i < $c; $i++) { + for ($i = 0, $c = count((array)$locks); $i < $c; $i++) { is_resource($locks[$i]) and @flock($locks[$i], LOCK_UN); }