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

Bug #5706 wrong return type in /LiveUser/Admin/Storage/SQL.php
Submitted: 2005-10-17 10:04 UTC Modified: 2005-10-17 14:22 UTC
From: alpa at aikenweb dot com Assigned: lsmith
Status: Closed Package: LiveUser_Admin
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-17 10:04 UTC] alpa at aikenweb dot com
Description: ------------ LiveUser_Admin v0.3.5 /LiveUser/Admin/Storage/SQL.php method _checkExplicitTable (on line 522) return string while in method findTables (on line 546->552) expect array. posible fix: replace return $match[1]; with return $match;

Comments

 [2005-10-17 10:16 UTC] lsmith
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.
 [2005-10-17 11:16 UTC] alpa at aikenweb dot com
Script still not work properly (cvs 1.40). When doing: $this->_checkExplicitTable($field, $selectable_tables); on lines 546, 560, 574 variable $match is string. This expect error when exucuting: $this->prefix.$this->alias[$match[1]].'.'.$match[2].' AS '.$match[2]; because $match[1] and $match[2] are elements of string $match
 [2005-10-17 14:22 UTC] lsmith
Doh! .. yes you are right of course .. I now went with your suggested fix.