root

Changeset 559

Show
Ignore:
Timestamp:
05/04/09 02:57:48 (1 year ago)
Author:
wbond
Message:

Changed fFile::__sleep() to not reset the iterator since it can cause side-effects

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fFile.php

    r551 r559 Hide Line Numbers
    1010 * @link       http://flourishlib.com/fFile 
    1111 *  
    12  * @version    1.0.0b17 
     12 * @version    1.0.0b18 
     13 * @changes    1.0.0b18  Changed ::__sleep() to not reset the iterator since it can cause side-effects [wb, 2009-05-04] 
    1314 * @changes    1.0.0b17  Added ::__sleep() and ::__wakeup() for proper serialization with the filesystem map [wb, 2009-05-03] 
    1415 * @changes    1.0.0b16  ::output() now accepts `TRUE` in the second parameter to use the current filename as the attachment filename [wb, 2009-03-23] 
     
    542543    public function __sleep() 
    543544    { 
    544         if ($this->file_handle) { 
    545             fclose($this->file_handle); 
    546             $this->current_line        = NULL; 
    547             $this->current_line_number = NULL; 
    548             $this->file_handle         = NULL;   
    549         } 
    550545        return array('exception', 'file'); 
    551546    }