Sorry, I’ve tested this plugin only with 5.4 version of PHP.
Array dereferencing was added only in 5.4 as you can see here ..
https://wiki.php.net/rfc/functionarraydereferencing
Actually it won’t work with 5.3, but I’ll commit soon a hot fix to work with that version.
Thanks for your suggestion,
F.
PS Take a look to http://php.net/supported-versions.php 😉
I agree with you about using of latest php versions, but you can add php version check in code of this plugin, for example.
Thx, for answer.
I’ve fixed line 95 in the wp2syslog.php. You can overwrite your existing copy of plugin with https://downloads.wordpress.org/plugin/wp2syslog.zip
Now it works with php 5.3.
Hope this helps,
F.
Will you add version 1.0.1 for auto-update?
svn ci -m “change version for php 5.3 backward compatibility”
Done 🙂
Enjoy.
F.
/wp-content/plugins/wp2syslog/wp2syslog.php line 111
/wp-content/plugins/wp2syslog/wp2syslog.php line 223
/wp-content/plugins/wp2syslog/wp2syslog_showlog.php line 422
same issue
Sorry, “php -l *php” won’t work as I expected.
Version 1.0.2 is online with fix you suggested.
Thanks,
F.
I think, now it’s ok. Thx.