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

Bug #5174 Notice: Only variable references should be returned by reference
Submitted: 2005-08-22 09:06 UTC
From: morpheu5 at infinito dot it Assigned: lsmith
Status: Closed Package: Auth
PHP Version: 5.1.0 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 14 + 26 = ?

 
 [2005-08-22 09:06 UTC] morpheu5 at infinito dot it
Description: ------------ Auth-1.3.0r3. Running the scripts included in the Documentation/Introduction I get the following notice: Notice: Only variable references should be returned by reference in c:\Programmi\php\PEAR\Auth.php on line 344 The script works fine made exception for this boring notice. I haven't been able to fix Auth.php by myself, I'm still trying to do that but I'm not a so experienced php-coder. Thanks for your support. Test script: --------------- http://pear.php.net/manual/en/package.authentication.auth.intro.php Expected result: ---------------- Just the login form. Actual result: -------------- That horrible notice AND the login form.

Comments

 [2005-08-22 09:18 UTC] morpheu5 at infinito dot it
I actually don't know if this solves the problem but the notice has magically disappeared itself. In file Auth.php at line 344: - return new $storage_class($options); + $result = new $storage_class($options); + return $result; Et voilĂ . It seems that everything is working correctly, the authentication process works. Cheers :)
 [2005-12-14 23:44 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-01-08 12:31 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!