• PHP программирование Узнал из комментария к описанию SplFileObject (The SplFileObject class offers an object oriented interface for a file.) что
    Note that this class has a private (and thus, not documented) property that holds the file pointer. Combine this with the fact that there is no method to close the file handle, and you get into situations where you are not able to delete the file with unlink(), etc., because an SplFileObject still has a handle open.
    Для закрытия файла нужно присвоить переменной содержащей объект NULL. Метода close() не напрограммировали.

Replies (0)