cvs: pear /File_Gettext Gettext.php LICENSE package.xml /File_Gettext/Gettext MO.php PO.php
| From: | Michael Wallner | Date: | Tue, 08 Nov 2005 18:57:08 +0000 |
| Subject: | cvs: pear /File_Gettext Gettext.php LICENSE package.xml /File_Gettext/Gettext MO.php PO.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36161@lists.php.net to get a copy of this message | ||
mike Tue Nov 8 13:57:08 2005 EDT
Added files:
/pear/File_Gettext LICENSE
Modified files:
/pear/File_Gettext Gettext.php package.xml
/pear/File_Gettext/Gettext MO.php PO.php
Log:
- fix bug #5712 fatal reference issues caused ba array_shift on functions return value
- change license to BSD
http://cvs.php.net/diff.php/pear/File_Gettext/Gettext.php?r1=1.6&r2=1.7&ty=u
Index: pear/File_Gettext/Gettext.php
diff -u pear/File_Gettext/Gettext.php:1.6 pear/File_Gettext/Gettext.php:1.7
--- pear/File_Gettext/Gettext.php:1.6 Mon Jul 18 05:49:02 2005
+++ pear/File_Gettext/Gettext.php Tue Nov 8 13:57:03 2005
@@ -6,18 +6,12 @@
*
* PHP versions 4 and 5
*
- * LICENSE: This source file is subject to version 3.0 of the PHP license
- * that is available through the world-wide-web at the following URI:
- * http://www.php.net/license/3_0.txt. If you did
not receive a copy of
- * the PHP License and are unable to obtain it through the web, please
- * send a note to license@php.net so we can mail you a copy immediately.
- *
* @category FileFormats
* @package File_Gettext
* @author Michael Wallner <mike@php.net>
* @copyright 2004-2005 Michael Wallner
- * @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Gettext.php,v 1.6 2005/07/18 09:49:02 mike Exp $
+ * @license BSD, revised
+ * @version CVS: $Id: Gettext.php,v 1.7 2005/11/08 18:57:03 mike Exp $
* @link http://pear.php.net/package/File_Gettext
*/
@@ -36,7 +30,7 @@
* #################################################################
*
* @author Michael Wallner <mike@php.net>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
* @access public
*/
class File_Gettext
http://cvs.php.net/diff.php/pear/File_Gettext/package.xml?r1=1.6&r2=1.7&ty=u
Index: pear/File_Gettext/package.xml
diff -u pear/File_Gettext/package.xml:1.6 pear/File_Gettext/package.xml:1.7
--- pear/File_Gettext/package.xml:1.6 Mon Jul 18 05:50:02 2005
+++ pear/File_Gettext/package.xml Tue Nov 8 13:57:03 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<package version="1.0">
<name>File_Gettext</name>
<license>PHP</license>
@@ -14,14 +14,15 @@
</maintainer>
</maintainers>
<release>
- <version>0.3.4</version>
+ <version>0.4.0</version>
<state>beta</state>
- <date>2005-07-18</date>
+ <date>2005-11-00</date>
<notes>
-* Fixed PHP 4.4 compatibility
+* Fixed bug #5712
</notes>
<filelist>
<dir role="php" name="/" baseinstalldir="File">
+ <file role="doc">LICENSE</file>
<file>Gettext.php</file>
<dir name="Gettext">
<file>MO.php</file>
http://cvs.php.net/diff.php/pear/File_Gettext/Gettext/MO.php?r1=1.6&r2=1.7&ty=u
Index: pear/File_Gettext/Gettext/MO.php
diff -u pear/File_Gettext/Gettext/MO.php:1.6 pear/File_Gettext/Gettext/MO.php:1.7
--- pear/File_Gettext/Gettext/MO.php:1.6 Wed Mar 30 13:26:48 2005
+++ pear/File_Gettext/Gettext/MO.php Tue Nov 8 13:57:06 2005
@@ -6,18 +6,12 @@
*
* PHP versions 4 and 5
*
- * LICENSE: This source file is subject to version 3.0 of the PHP license
- * that is available through the world-wide-web at the following URI:
- * http://www.php.net/license/3_0.txt. If you did
not receive a copy of
- * the PHP License and are unable to obtain it through the web, please
- * send a note to license@php.net so we can mail you a copy immediately.
- *
* @category FileFormats
* @package File_Gettext
* @author Michael Wallner <mike@php.net>
* @copyright 2004-2005 Michael Wallner
- * @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: MO.php,v 1.6 2005/03/30 18:26:48 mike Exp $
+ * @license BSD, revised
+ * @version CVS: $Id: MO.php,v 1.7 2005/11/08 18:57:06 mike Exp $
* @link http://pear.php.net/package/File_Gettext
*/
@@ -32,7 +26,7 @@
* GNU MO file reader and writer.
*
* @author Michael Wallner <mike@php.net>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
* @access public
*/
class File_Gettext_MO extends File_Gettext
@@ -91,7 +85,7 @@
*/
function _readInt($bigendian = false)
{
- return array_shift(unpack($bigendian ? 'N' : 'V', $this->_read(4)));
+ return current($array = unpack($bigendian ? 'N' : 'V',
$this->_read(4)));
}
/**
@@ -168,7 +162,7 @@
}
// read (part of) magic number from MO file header and define endianess
- switch ($magic = array_shift(unpack('c', $this->_read(4))))
+ switch ($magic = current($array = unpack('c', $this->_read(4))))
{
case -34:
$be = false;
http://cvs.php.net/diff.php/pear/File_Gettext/Gettext/PO.php?r1=1.4&r2=1.5&ty=u
Index: pear/File_Gettext/Gettext/PO.php
diff -u pear/File_Gettext/Gettext/PO.php:1.4 pear/File_Gettext/Gettext/PO.php:1.5
--- pear/File_Gettext/Gettext/PO.php:1.4 Wed Mar 30 13:26:48 2005
+++ pear/File_Gettext/Gettext/PO.php Tue Nov 8 13:57:06 2005
@@ -6,18 +6,12 @@
*
* PHP versions 4 and 5
*
- * LICENSE: This source file is subject to version 3.0 of the PHP license
- * that is available through the world-wide-web at the following URI:
- * http://www.php.net/license/3_0.txt. If you did
not receive a copy of
- * the PHP License and are unable to obtain it through the web, please
- * send a note to license@php.net so we can mail you a copy immediately.
- *
* @category FileFormats
* @package File_Gettext
* @author Michael Wallner <mike@php.net>
* @copyright 2004-2005 Michael Wallner
- * @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: PO.php,v 1.4 2005/03/30 18:26:48 mike Exp $
+ * @license BSD, revised
+ * @version CVS: $Id: PO.php,v 1.5 2005/11/08 18:57:06 mike Exp $
* @link http://pear.php.net/package/File_Gettext
*/
@@ -32,7 +26,7 @@
* GNU PO file reader and writer.
*
* @author Michael Wallner <mike@php.net>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @access public
*/
class File_Gettext_PO extends File_Gettext