psicosi448
Forum Replies Created
-
Forum: Plugins
In reply to: [wp2syslog] Support for PHP 7.xI’ll avoid the use of mysql_error function in next release.
Thank you for suggestion,
F.Forum: Plugins
In reply to: [wp2syslog] Take over maintainershipHi @johnbburg,
I appreciate your help in maintaing this plugins, and I apologies for late reply.I saw you got a github account. May I ask you to create pull requests to following project ?
https://github.com/kataweb/wp2syslogI’m working now to fix php7 compatibility and I’m doing a better input sanitize.
F.
Forum: Plugins
In reply to: [Wordstress] Annoying warning in endsWith()I’m on a WP 4.1.2 and a PHP 5.4.35.
It seems that strlen($haystack)===0 raise the Warning.
Maybe the homepage ?Forum: Plugins
In reply to: [Wordstress] Annoying warning in endsWith()Sure.
I’ve tried 0.7 version.
Now I’m seeing this warning:[22-Apr-2015 07:46:02 UTC] PHP Warning: substr_compare(): The start position cannot exceed initial string length in wordstress.php on line 99
Forum: Plugins
In reply to: [wp2syslog] Parse error on version 1.0.0Sorry, “php -l *php” won’t work as I expected.
Version 1.0.2 is online with fix you suggested.
Thanks,
F.Forum: Plugins
In reply to: [wp2syslog] Parse error on version 1.0.0svn ci -m “change version for php 5.3 backward compatibility”
Done ??
Enjoy.
F.
Forum: Plugins
In reply to: [wp2syslog] Parse error on version 1.0.0I’ve fixed line 95 in the wp2syslog.php. You can overwrite your existing copy of plugin with https://downloads.www.ads-software.com/plugin/wp2syslog.zip
Now it works with php 5.3.
Hope this helps,
F.Forum: Plugins
In reply to: [wp2syslog] Parse error on version 1.0.0Sorry, 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/functionarraydereferencingActually 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 https://php.net/supported-versions.php ??
Forum: Plugins
In reply to: [Wordstress] Annoying warning in endsWith()No reason to check if $needle === “”.
endsWith has to check:
1) $haystack lenght > 0
2) strlen($haystack)>=strlen($needle)
3) strpos !== FALSEreturn strlen($haystack) && ($len=strlen($haystack)-strlen($needle)) >= 0 && strpos($haystack, $needle, $len) !== FALSE;
Hope this helps and thanks for your plugin,
F.Forum: Plugins
In reply to: [wp2syslog] Log to syslog serverSorry, I’ve never heard bout splunk.
I’ll keep in mind the possibility of a db export in a CSV format in next releases.
First, I think this plugin needs a refactory: it’s too old ??It’s just a little toy to write logs to your system log.
It use php “openlog” function.After writing to local syslog, you may concentrate different hosts with rsyslog and query using schema Logstash+Elasticsearch+Kibana:
https://www.elasticsearch.org/overview/Hope this helps.
F.
Forum: Plugins
In reply to: [wp2syslog] Potential improvement in the codeIt was a typo in function declaration.
I fixed it in 0.2.2:function wp2syslog_register_post($arg=’null’, $arg2=’null’) {
Thanks.
F.