cvs: pear /Pager Common.php package.xml

[email protected] ("Lorenzo Alberton")
Newsgroups php.pear.cvs
Message-ID <cvsquipo1208623976@cvsserver>
quipo		Sat Apr 19 16:52:56 2008 UTC

  Modified files:              
    /pear/Pager	Common.php package.xml 
  Log:
  fixed bug #13604: WARNINGS with PHP 5.3-dev [thanks to Chris Troup]
  
http://cvs.php.net/viewvc.cgi/pear/Pager/Common.php?r1=1.78&r2=1.79&diff_format=u
Index: pear/Pager/Common.php
diff -u pear/Pager/Common.php:1.78 pear/Pager/Common.php:1.79
--- pear/Pager/Common.php:1.78	Wed Mar 26 22:23:49 2008
+++ pear/Pager/Common.php	Sat Apr 19 16:52:56 2008
@@ -33,7 +33,7 @@
  * @author    Richard Heyes <[email protected]>
  * @copyright 2003-2007 Lorenzo Alberton, Richard Heyes
  * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
- * @version   CVS: $Id: Common.php,v 1.78 2008/03/26 22:23:49 quipo Exp $
+ * @version   CVS: $Id: Common.php,v 1.79 2008/04/19 16:52:56 quipo Exp $
  * @link      http://pear.php.net/package/Pager
  */
 
@@ -353,25 +353,25 @@
     var $_spacesAfter   = '';
 
     /**
-     * @var string $_firstLinkTitle
+     * @var string String used as title in <link rel="first"> tag
      * @access private
      */
     var $_firstLinkTitle = 'first page';
 
     /**
-     * @var string $_nextLinkTitle
+     * @var string String used as title in <link rel="next"> tag
      * @access private
      */
     var $_nextLinkTitle = 'next page';
 
     /**
-     * @var string $_prevLinkTitle
+     * @var string String used as title in <link rel="previous"> tag
      * @access private
      */
     var $_prevLinkTitle = 'previous page';
 
     /**
-     * @var string $_lastLinkTitle
+     * @var string String used as title in <link rel="last"> tag
      * @access private
      */
     var $_lastLinkTitle = 'last page';
@@ -996,7 +996,11 @@
             $this->_recursive_urldecode($this->_extraVars);
             $qs = array_merge($qs, $this->_extraVars);
         }
-        if (count($qs) && function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
+        if (count($qs)
+            && function_exists('get_magic_quotes_gpc')
+            && -1 == version_compare(PHP_VERSION, '5.2.99')
+            && get_magic_quotes_gpc()
+        ) {
             $this->_recursive_stripslashes($qs);
         }
         return $qs;
@@ -1295,7 +1299,7 @@
     function getPerPageSelectBox($start=5, $end=30, $step=5, $showAllData=false, $extraParams=array())
     {
         include_once 'Pager/HtmlWidgets.php';
-        $widget =& new Pager_HtmlWidgets($this);
+        $widget = new Pager_HtmlWidgets($this);
         return $widget->getPerPageSelectBox($start, $end, $step, $showAllData, $extraParams);
     }
 
@@ -1321,7 +1325,7 @@
     function getPageSelectBox($params = array(), $extraAttributes = '')
     {
         include_once 'Pager/HtmlWidgets.php';
-        $widget =& new Pager_HtmlWidgets($this);
+        $widget = new Pager_HtmlWidgets($this);
         return $widget->getPageSelectBox($params, $extraAttributes);
     }
 
http://cvs.php.net/viewvc.cgi/pear/Pager/package.xml?r1=1.108&r2=1.109&diff_format=u
Index: pear/Pager/package.xml
diff -u pear/Pager/package.xml:1.108 pear/Pager/package.xml:1.109
--- pear/Pager/package.xml:1.108	Fri Mar 28 00:05:12 2008
+++ pear/Pager/package.xml	Sat Apr 19 16:52:56 2008
@@ -22,24 +22,18 @@
   <email>[email protected]</email>
   <active>no</active>
  </lead>
- <date>2008-03-28</date>
- <time>01:03:27</time>
+ <date>2008-04-19</date>
+ <time>18:51:27</time>
  <version>
-  <release>2.4.6</release>
-  <api>2.4.6</api>
+  <release>2.4.7</release>
+  <api>2.4.7</api>
  </version>
  <stability>
   <release>stable</release>
   <api>stable</api>
  </stability>
  <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
- <notes>- fixed bug #13316: NOTICE in getLinks() in Jumping mode
-- fixed bug #13342: getLinks() returns wrong result with multi-byte arrays
-- fixed bug #13469: getPerPageSelectBox() can produce invalid xhtml with no data
-- fixed bug #13472: PHP 6 Removes get_magic_quotes_gpc()
-- fixed bug #13506: POST method deletes querystring
-- request #13509: added 'prevImgEmpty' and 'nextImgEmpty' options to show a disabled
-  prev/next page link when you are on the last/first page (cweiske)
+ <notes>- fixed bug #13604: WARNINGS with PHP 5.3-dev [thanks to Chris Troup]
  </notes>
  <contents>
   <dir name="/">
@@ -96,6 +90,20 @@
  <changelog>
   <release>
    <version>
+    <release>2.4.7</release>
+    <api>2.4.7</api>
+   </version>
+   <stability>
+    <release>stable</release>
+    <api>stable</api>
+   </stability>
+   <date>2008-04-19</date>
+   <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
+   <notes>- fixed bug #13604: WARNINGS with PHP 5.3-dev [thanks to Chris Troup]
+   </notes>
+  </release>
+  <release>
+   <version>
     <release>2.4.6</release>
     <api>2.4.6</api>
    </version>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.