Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.1

Bug #13342 getLinks() return the wrong result.
Submitted: 2008-03-08 07:10 UTC
From: sunaoka Assigned: quipo
Status: Closed Package: Pager (version 2.4.5)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 47 + 25 = ?

 
 [2008-03-08 07:10 UTC] sunaoka (Norifumi Sunaoka)
Description: ------------ When a form value is an array and a multi byte, getLinks() return the wrong result. Test script: --------------- <?php require_once 'Pager/Pager.php'; // <input type="text" name="q[]" /> $_GET['q'][] = '漢字'; // in Japanese (UTF-8) $pager =& Pager::factory(array( 'mode' => 'sliding', 'totalItems' => 100 )); $links = $pager->getLinks(); echo $links['next'], "\n"; Expected result: ---------------- <a href="./test.php?q%5B0%5D=%E6%BC%A2%E5%AD%97&pageID=2" title="next page">»</a> Actual result: -------------- <a href="./test.php?q%5B0%5D=&aelig;&frac14;&cent;&aring;&shy;&pageID=2" title="next page">»</a>

Comments

 [2008-03-09 14:48 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.