Bug #14966 [Com]: Strict checkis show problems

From: Date: Fri, 27 Apr 2012 20:14:20 +0000
Subject: Bug #14966 [Com]: Strict checkis show problems
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8590@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=14966&edit=1 ID: 14966 Comment by: jay.knight@stjude.org Reported By: envite at rolamasao dot org Summary: Strict checkis show problems Status: Bogus Type: Bug Package: Auth Operating System: Debian GNU/Linux Package Version: 1.6.1 PHP Version: 5.2.6 Roadmap Versions: New Comment: Has anything happened with this Auth2 in the last 3.5 years? Previous Comments: ------------------------------------------------------------------------ [2008-11-06 21:52:21] aashley 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. ------------------------------------------------------------------------ [2008-11-06 18:44:34] envite 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: ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=14966&edit=1

« previous php.pear.bugs (#8590) next »