hydrian / TTRSS-Auth-LDAP

GitHub repository for Tiny Tiny RSS's auth_ldap plugin
https://github.com/hydrian/TTRSS-Auth-LDAP/wiki
Other
28 stars 21 forks source link

Parse error: syntax error, unexpected '[' in Tiny-Tiny-RSS/plugins/auth_ldap/init.php on line 296 #11

Closed 1of16 closed 10 years ago

1of16 commented 10 years ago

hi,

just tried your new version, but its not working for me: Parse error: syntax error, unexpected '[' in /var/opt/ttrss_src/Tiny-Tiny-RSS/plugins/auth_ldap/init.php on line 296 but as far as I can see it, there is nothing wrong?

alfredkrohmer commented 10 years ago

I've put the file init.php as it is now in the repo in my TT RSS installtion and it works for me.

1of16 commented 10 years ago

line 296 is the only diff between my old, working version and the new one....got no other log file or something... but I'm willing to test a fix if there is any ;)

hydrian commented 10 years ago

What version if PHP are you using ?

1of16 commented 10 years ago

PHP 5.3.10-1ubuntu3.13 (Ubuntu 12.04.5) and ttrss 1.13

hydrian commented 10 years ago

devkid what version of PHP are you running? I think I may see the issue.

alfredkrohmer commented 10 years ago

I'm using PHP 5.5.16-2 and TT RSS 1.13 on Arch.

hydrian commented 10 years ago

Ok. I think I see the issue. I wouldn't get test it until tonight. It's a PHP 5.2/5.3 vs. 5.5 quirk. It that you cannot access an array index that is returned by a function inline. This has been a long issue with PHP 5.2 and 5.3.

hydrian commented 10 years ago

I have verified that this bug has been fixed with Ubuntu 12.04.4 with PHP 5.3.10 (Stock). 1of16 would you please verify this is fixed for you?

1of16 commented 10 years ago

yes, its fixed now! :+1:

thank you!