[Tickets #10965] Re: call-time pass-by-reference in Horde_Auth
bugs at horde.org
bugs at horde.org
Tue Feb 7 17:46:22 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10965
------------------------------------------------------------------------------
Ticket | 10965
Updated By | math.parent at gmail.com
Summary | call-time pass-by-reference in Horde_Auth
Queue | Horde Framework Packages
Version | Git master
Type | Enhancement
State | Rejected
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
math.parent at gmail.com (2012-02-07 17:46) wrote:
This is not pass-by-reference which is deprecated but call-time
pass-by-reference.
i.e:
function foo(&$arg) { }
is accepted
but
$var = foo(&$arg)
is not in php 5.4.
According to source [1] and doc [2], argument &$error of pam_auth and
pam_chpass, is passed by reference.
So
pam_auth($username, $password , $error)
and pam_auth($username, $password , &$error)
are equivalent, but the second form will throw a fatal error on php 5.4.
[1]: http://svn.php.net/viewvc/pecl/pam/trunk/pam.c?view=markup
[2]: http://svn.php.net/viewvc/pecl/pam/trunk/README?view=markup
More information about the bugs
mailing list