Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid error messages and occasional core dumps #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

level420
Copy link

After patching our ancient joomla 1.5 installations with the current session hardening fix, we noticed the following error messages in the log files occur:

Notice: Only variable references should be returned by reference in /srv/www/htdocs/sheep/libraries/joomla/session/session.php on line 343

On some instances running via apache/php/fcgi (apache 2.4, php 5.4.16, mod_fcgid) we encounter occasional core dumps.

The change avoids the error message by assigning the result of the method call first to a variable and returning that variable.

As a result the error messages are gone and the occasional core dumps did not occur anymore

…7.2)

After patching our ancient joomla 1.5 installations with the current session hardening fix, we noticed the following error messages in the log files occur:

Notice: Only variable references should be returned by reference in /srv/www/htdocs/sheep/libraries/joomla/session/session.php on line 343

On some instances running via apache/php/fcgi we encounter occasional core dumps.

The change avoids the error message by assigning the result of the method call first to a variable and returning that variable.

As a result the error messages are gone and the occasional core dumps did not occur anymore
@level420 level420 changed the title Avoid error messages and occasional core dumps on php 5.4.16 (centos 7.2) Avoid error messages and occasional core dumps Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant