252: if (pam_auth($_POST['user'], $_POST['pass'], &$PAM_ERR)) {
Should become:
252: if (pam_auth($_POST['user'], $_POST['pass'], $PAM_ERR)) {
Looks like its pam_auth is a PHP extension, don't know much about it, found
the source code (http://svn.php.net/viewvc/pecl/pam/trunk/) and it looks
like the 3rd parameter is pass by reference.
I would hazard a guess and say, remove the ampersand from line 252 and it
will work.
Shaun
On Tue, Jul 12, 2016 at 4:05 PM, Michelle Konzack <linux4michell
[email protected]>
wrote:
> Hello *,
>
> I have updated an old Debian/Squeezy server and now I get an PHP error
> message and my website does not more work:
>
> PHP Fatal error: Call-time pass-by-reference has been removed in
> /srv/..../includes/00_main.inc on line 252
>
> The offending lines are:
>
> 249: if ( $_POST['admin'] == 'admin' ) {
> 250:
> 251: function do_auth() {
> 252: if (pam_auth($_POST['user'], $_POST['pass'], &$PAM_ERR)) {
> 253: $TIME=time() + 900;
>
> OK, it is the part with "&$PAM_ERR" and I do not know, how to solv this.
>
> Any suggestions?
>
> Thanks in avance
>
> --
> Michelle Konzack ITSystems
> GNU/Linux Developer 0033-6-61925193
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit:
http://www.php.net/unsub.php
>
>