[ihris-developers] PHP Syntax Errors

Mark A. Hershberger mah at everybody.org
Tue Feb 5 20:08:35 EST 2008


While running "php -l" on all .php files to look for syntax errors, I
found the following:

$ php -l ./modules/Forms/modules/FormDownloadable/I2CE_Form_Downloadable.php
  Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, 
  expecting T_STRING or T_VARIABLE or '{' or '$' in
  ./modules/Forms/modules/FormDownloadable/I2CE_Form_Downloadable.php on line 50
  Errors parsing ./modules/Forms/modules/FormDownloadable/I2CE_Form_Downloadable.php

(Duplicate in ./modules/Forms/lib/I2CE_Form_Downloadable.php, too.)

The problem (in getDefaultRoles()) is this line:

    return array ( I2CE::getConfig()->I2CE->role->role_const->'admin');

I'm not sure what should be done or if this code is even going to be
used, but it won't right now.

Mark.

-- 
http://hexmode.com/
GPG Fingerprint: 7E15 362D A32C DFAB E4D2  B37A 735E F10A 2DFC BFF5

Ideas create idols; only wonder leads to knowing.
    -- St. Gregory of Nyssa


More information about the ihris-developers mailing list