2013-11-06

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUD.

Originally Posted By: phoenix1977
Hello,

on php53 the script report the following error:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/xxxxx/public_html/xxxxx/news/bin/fetcher.php on line 1293

What could be the problem?

Best
'''Originally Posted By: phoenix1977''' Hello,<br><br>on php53 the script report the following error:<br><br>Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/xxxxx/public_html/xxxxx/news/bin/fetcher.php on line 1293<br><br>What could be the problem?<br><br>Best

-- Parse error: syntax error, unexpected T_PAAMAYIM_NEKUD
The fact that it is a parse error would lead me to believe either you changed the code, or
the version of PHP is too old. On my copy of fetcher.php that line reads:
$processors = $plugin_name::getProcessors();
which is a static function call that according to
http://php.net/manual/en/language.oop5.static.php
should work in PHP 5.3.0. I haven't tested on the very first version
of PHP 5.3 so it might be possible that contrary to the manual it
didn't quite work bug free then. We are talking five or six year old
versions of PHP though so it might not hurt to upgrade.
The fact that it is a parse error would lead me to believe either you changed the code, or<br>the version of PHP is too old. On my copy of fetcher.php that line reads:<br> $processors = $plugin_name::getProcessors();<br>which is a static function call that according to<br> http://php.net/manual/en/language.oop5.static.php<br>should work in PHP 5.3.0. I haven't tested on the very first version<br>of PHP 5.3 so it might be possible that contrary to the manual it<br>didn't quite work bug free then. We are talking five or six year old<br>versions of PHP though so it might not hurt to upgrade.
2013-11-07

-- Parse error: syntax error, unexpected T_PAAMAYIM_NEKUD
Originally Posted By: phoenix1977
Hello,

the following is the answer of my hosting provider:

"I edited path for php binary in cron to /usr/local/php53/bin/php to make it use PHP 5.3 manually and now I do not see the syntax error. It does however say a bad request. Please check this with developer:
Content-type: text/html
BAD REQUESTContent-type: text/html".

How to fix this issue?
'''Originally Posted By: phoenix1977''' Hello,<br><br>the following is the answer of my hosting provider:<br><br>&quot;I edited path for php binary in cron to /usr/local/php53/bin/php to make it use PHP 5.3 manually and now I do not see the syntax error. It does however say a bad request. Please check this with developer:<br>Content-type: text/html<br>BAD REQUESTContent-type: text/html&quot;.<br><br>How to fix this issue?
2013-11-11

-- Parse error: syntax error, unexpected T_PAAMAYIM_NEKUD
I don't understand what the point of the cron job is?
I don't understand what the point of the cron job is?
X