--- a/web/lib/Zend/Translate/Adapter/Gettext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Gettext.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Gettext.php 22653 2010-07-22 18:41:39Z mabe $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Gettext.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Gettext extends Zend_Translate_Adapter {
@@ -72,6 +72,7 @@
throw new Zend_Translate_Exception('Error opening translation file \'' . $filename . '\'.');
}
if (@filesize($filename) < 10) {
+ @fclose($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception('\'' . $filename . '\' is not a gettext file');
}
@@ -83,6 +84,7 @@
} else if (strtolower(substr(dechex($input[1]), -8)) == "de120495") {
$this->_bigEndian = true;
} else {
+ @fclose($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception('\'' . $filename . '\' is not a gettext file');
}
@@ -131,6 +133,8 @@
}
}
}
+
+ @fclose($this->_file);
$this->_data[$locale][''] = trim($this->_data[$locale]['']);
if (empty($this->_data[$locale][''])) {