Various Syntax Errors / Malformed PHP in the PHPcrawl utils sub-functions.
syntax error, unexpected ',' PHPCrawlerEncodingUtils.class.php
/PHPCrawl/libs/Utils line 87 DLTK Problem
syntax error, unexpected ',' PHPCrawlerEncodingUtils.class.php
/PHPCrawl/libs/Utils line 90 DLTK Problem
syntax error, unexpected '{' PHPCrawlerEncodingUtils.class.php
/PHPCrawl/libs/Utils line 87 DLTK Problem
syntax error, unexpected '{' PHPCrawlerEncodingUtils.class.php
/PHPCrawl/libs/Utils line 90 DLTK Problem
syntax error, unexpected 'function' PHPCrawlerEncodingUtils.class.php
/PHPCrawl/libs/Utils line 87 DLTK Problem
syntax error, unexpected 'function' PHPCrawlerEncodingUtils.class.php
/PHPCrawl/libs/Utils line 90 DLTK Problem
Anonymous
Hi!
Thanks for the report!
Did a quick tests but i don't get these errors over here.
When do they appear for you?
Also, i can't see any "wrong" code in the mentioned lines, that's a little strange.
What php-version ans OS did you use?
Update:
Seems like some IDEs don't like anonymous functions and throw a syntax error
(as used in method PHPCrawlerEncodingUtils::decodeHtmlEntities()).
Also, anonymous functions weren't available before PHP 5.3.
Will get removed in the next release.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I get this error also:
PHP Parse error: syntax error, unexpected T_FUNCTION in libs/Utils/PHPCrawlerEncodingUtils.class.php on line 87
This is PHPCrawl 0.83. Will need to fix this manually myself in my instance. I'm using PHP 5.4.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I get this issue with an older version of PHP prior to 5.4. My other installation of 5.4 works as it supports anonymous functions. - Thanks.