cvs: pear /Translation2 Decorator.php Translation2.php package.xml
| From: | Lorenzo Alberton | Date: | Thu, 03 Mar 2005 16:35:44 +0000 |
| Subject: | cvs: pear /Translation2 Decorator.php Translation2.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30026@lists.php.net to get a copy of this message | ||
quipo Thu Mar 3 11:35:44 2005 EDT
Modified files:
/pear/Translation2 Decorator.php Translation2.php package.xml
Log:
added a __clone() method to clone the internal object references
(bug #3641, patch by Olivier Guilyardi)
http://cvs.php.net/diff.php/pear/Translation2/Decorator.php?r1=1.12&r2=1.13&ty=u
Index: pear/Translation2/Decorator.php
diff -u pear/Translation2/Decorator.php:1.12 pear/Translation2/Decorator.php:1.13
--- pear/Translation2/Decorator.php:1.12 Tue Feb 22 12:55:04 2005
+++ pear/Translation2/Decorator.php Thu Mar 3 11:35:43 2005
@@ -17,7 +17,7 @@
* @author Lorenzo Alberton <l dot alberton at quipo dot it>
* @copyright 2004-2005 Lorenzo Alberton
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Decorator.php,v 1.12 2005/02/22 17:55:04 quipo Exp $
+ * @version CVS: $Id: Decorator.php,v 1.13 2005/03/03 16:35:43 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
@@ -337,5 +337,20 @@
}
// }}}
+ // {{{ __clone()
+
+ /**
+ * Clone internal object references
+ *
+ * This method is called automatically by PHP5
+ *
+ * @access protected
+ */
+ function __clone()
+ {
+ $this->translation2 = clone($this->translation2);
+ }
+
+ // }}}
}
?>
\ No newline at end of file
http://cvs.php.net/diff.php/pear/Translation2/Translation2.php?r1=1.30&r2=1.31&ty=u
Index: pear/Translation2/Translation2.php
diff -u pear/Translation2/Translation2.php:1.30 pear/Translation2/Translation2.php:1.31
--- pear/Translation2/Translation2.php:1.30 Tue Feb 22 12:55:04 2005
+++ pear/Translation2/Translation2.php Thu Mar 3 11:35:43 2005
@@ -17,7 +17,7 @@
* @author Lorenzo Alberton <l dot alberton at quipo dot it>
* @copyright 2004-2005 Lorenzo Alberton
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Translation2.php,v 1.30 2005/02/22 17:55:04 quipo Exp $
+ * @version CVS: $Id: Translation2.php,v 1.31 2005/03/03 16:35:43 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
@@ -500,5 +500,20 @@
}
// }}}
+ // {{{ __clone()
+
+ /**
+ * Clone internal object references
+ *
+ * This method is called automatically by PHP5
+ *
+ * @access protected
+ */
+ function __clone()
+ {
+ $this->storage = clone($this->storage);
+ }
+
+ // }}}
}
?>
\ No newline at end of file
http://cvs.php.net/diff.php/pear/Translation2/package.xml?r1=1.68&r2=1.69&ty=u
Index: pear/Translation2/package.xml
diff -u pear/Translation2/package.xml:1.68 pear/Translation2/package.xml:1.69
--- pear/Translation2/package.xml:1.68 Mon Feb 21 11:49:16 2005
+++ pear/Translation2/package.xml Thu Mar 3 11:35:43 2005
@@ -45,10 +45,12 @@
</maintainers>
<release>
<version>2.0.0beta7</version>
- <date>2005-02-21</date>
+ <date>2005-03-03</date>
<license>PHP License</license>
<state>beta</state>
<notes>
+- added a __clone() method to clone the internal object references
+ (bug #3641, patch by Olivier Guilyardi)
- Some fixes to the XML container, many thanks to Olivier Guilyardi:
* fixed bug #3408: empty data sets were not correctly handled;
* fixed bug #3420: get a shared file lock instead of an exclusive one;
@@ -154,10 +156,12 @@
<changelog>
<release>
<version>2.0.0beta7</version>
- <date>2005-02-21</date>
+ <date>2005-03-03</date>
<license>PHP License</license>
<state>beta</state>
<notes>
+- added a __clone() method to clone the internal object references
+ (bug #3641, patch by Olivier Guilyardi)
- Some fixes to the XML container, many thanks to Olivier Guilyardi:
* fixed bug #3408: empty data sets were not correctly handled;
* fixed bug #3420: get a shared file lock instead of an exclusive one;