K
K
krll-k2014-06-22 16:38:54
linux
krll-k, 2014-06-22 16:38:54

live street. The code that works on php v 5.4 does not work on v 5.5. How to fix?

The code that works on php v 5.4 does not work on v 5.5. php_info.diff

[email protected]:~$ php -v
PHP 5.4.28 (cli) (built: Jun 22 2014 16:19:45) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[email protected]:~$ sudo php -v
[sudo] password for krll_: 
PHP 5.5.13-2+deb.sury.org~trusty+1 (cli) (built: Jun 18 2014 08:49:26) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

Syntax error in ActionMain.class.php file of LiveStreet CMS
plugin
Parse error: syntax error, unexpected end of file in /home/krll_/Проекты/cenomarket/plugins/socialauthlite/classes/actions/ActionMain.class.php on line 297

How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kazin8, 2014-06-22
@krll-k

In general, try first to make an empty line last.
And then... remove the <script> blah blah from the center. In general, this is allowed by the syntax, but you never know (and it looks disgusting)

S
Sergey, 2014-06-22
Protko @Fesor

Most likely, the PHP settings are to blame (you have something in your php.ini settings for versions 5.4 and 5.5) and the use of html inserts. That is, the short_open_tag directive is most likely disabled.
ps Needless to say that this class would be a good guinea pig for understanding the refactoring process?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question