If you are copy-pasting the above from the source code (e.g. a php file),
then you applied the patch wrong. The must be no + and - signs on those if
lines. The + and - sign indicate what operation to do with those lines -
e.g. remove the first if and add the second one in place.
Leaving the + and - will generate invalid PHP code and thus lead to that
error you are encountering.
On Fri, Feb 15, 2013 at 7:23 AM, Mark M <mark0...@yahoo.com> wrote:
> Hi,
>
> I get this same problem this guy is having and can't figure it out. Has
> anyone come up tp a solution for this? btw, the \ all over the place is fromt
> he copy/paste into the email.
>
>
>
> // Session check
> -if ( !array_key_exists(\'backend_version\', $_SESSION ) || $_SESSION
> [\'backend_version\'] != $expected_version ) {
> +if ( array_key_exists(\'backend_version\', $_SESSION ) && $_SESSION
> [\'backend_version\'] != $expected_version ) {
> session_destroy();
> session_start();
> $_SESSION[\'version\'] = $expected_version;
>
>
> I get this error in /var/log/httpd/error_log:
>
> [Sat Feb 25 20:20:15 2012] [error] [client 127.0.0.1] PHP Parse error:
> syntax error,
> unexpected T_IF in /var/www/nfsen/nfsen.php on line 45
>
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> Nfsen-discuss mailing list
> Nfsen-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
>
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss