Summary | call-time pass-by-reference in Horde_Auth |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | math.parent (at) gmail (dot) com |
Created | 02/06/2012 (4911 days ago) |
Due | |
Updated | 01/10/2013 (4572 days ago) |
Assigned | |
Resolved | 01/10/2013 (4572 days ago) |
Milestone | |
Patch | No |
Assigned to Michael Slusarz
State ⇒ Resolved
Priority ⇒ 1. Low
Fixed in Horde_Auth 2.0.3.
commit e818d082119aa497428c44609d7c42373acbc872
Author: Michael M Slusarz <slusarz@horde.org>
Date: Thu Jan 10 13:14:41 2013 -0700
This was
Bug #10965framework/Auth/package.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/e818d082119aa497428c44609d7c42373acbc872
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
because of "PHP Fatal error".
updated to *not* require call-by-reference, it won't work with PHP 5.4
anymore anyway.
found
http://lists.horde.org/archives/dev/Week-of-Mon-20110321/025992.html)
But this bug report is not specific to Debian: it is for Horde 4 to
work under php 5.4.
Without the attached patch, Horde_Auth will fail under PHP 5.4 because
of "PHP Fatal error".
State ⇒ Rejected
Debian doesn't matter because they have some custom extension that
isn't available anywhere else.
See past discussions for details.
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ call-time pass-by-reference in Horde_Auth
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
New Attachment: Pam.php.diff
State ⇒ New
According to http://php.net/manual/en/language.references.pass.php:
<<<
As of PHP 5.3.0, you will get a warning saying that "call-time
pass-by-reference" is deprecated when you use & in foo(&$a);.
See attached patch for "framework/Auth/lib/Horde/Auth/Pam.php", to fix
this for Horde_Auth.
See original report at http://bugs.debian.org/658870