Menu

#84 Syntax Errors in PHPCrawlerEncodingUtils.class.php

open
9
2015-10-11
2015-03-01
No

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

Discussion

  • Uwe Hunfeld

    Uwe Hunfeld - 2015-03-01

    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?

     
  • Uwe Hunfeld

    Uwe Hunfeld - 2015-04-13

    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.

     
  • Anonymous

    Anonymous - 2015-10-11

    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.

     
  • Anonymous

    Anonymous - 2015-10-11

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.