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

Bug #14966 Strict checkis show problems
Submitted: 2008-11-06 23:44 UTC
From: envite Assigned:
Status: Bogus Package: Auth (version 1.6.1)
PHP Version: 5.2.6 OS: Debian GNU/Linux
Roadmaps: 1.6.2    
Subscription  


 [2008-11-06 23:44 UTC] envite (Noel Torres)
Description: ------------ When developing I use error_reporting(8191); to be sure I do not leave anything behind. Using Auth it shows that there are "Strict-checking" problems. The second one (Auth_Frontend_Html::render) may be related to #13198 but I think the first one (Assigning the return value of new by reference is deprecated) is not. Test script: --------------- <?php error_reporting(8191); require_once "Auth.php"; $auth_options = array( 'dsn' => "mysql://user:passwd@localhost/dbname", 'cryptType' => "none", ); $auth_object = new Auth("DB", $auth_options) ; $auth_object->start() ; if($auth_object->checkAuth()) { echo("Auth OK") ; } ?> Expected result: ---------------- Login Username: Password: Actual result: -------------- Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/php/Auth.php on line 469 Strict Standards: Non-static method Auth_Frontend_Html::render() should not be called statically, assuming $this from incompatible context in /usr/share/php/Auth.php on line 599 Login Username: Password:

Comments

 [2008-11-07 02:52 UTC] aashley (Adam Ashley)
Thank you for taking the time to write to us, but this is not a bug. Auth is designed to run with PHP4 as such it will always cause E_STRICT errors in PHP5. When PEAR2 is fully released a new PHP5 only Auth2 package will be released that is E_STRICT compliant.
 [2012-04-28 01:14 UTC] jk3us (Jay Knight)
Has anything happened with this Auth2 in the last 3.5 years?