PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » Auth » Bug #5174

Notice: Only variable references should be returned by reference

Details

Submitted2005-08-22 09:06 UTC
Frommorpheu5 at infinito dot it
Assignedlsmith
StatusClosed
PackageAuth
PHP Version5.1.0
OSWindows XP
Roadmaps(Not assigned)

Comments

[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.

[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 :)