From becc5bfbf289b1dda65fea4761742f1998d2143a Mon Sep 17 00:00:00 2001 From: tcit Date: Sun, 18 May 2014 18:56:20 +0200 Subject: [PATCH] Fix for #678 --- wallabag_compatibility_test.php | 96 ++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 42 deletions(-) diff --git a/wallabag_compatibility_test.php b/wallabag_compatibility_test.php index 7a52767..d6f2215 100644 --- a/wallabag_compatibility_test.php +++ b/wallabag_compatibility_test.php @@ -8,6 +8,7 @@ $mbstring_ok = extension_loaded('mbstring'); $iconv_ok = extension_loaded('iconv'); $tidy_ok = function_exists('tidy_parse_string'); $curl_ok = function_exists('curl_exec'); +$parse_ini_ok = function_exists('parse_ini_file'); $parallel_ok = ((extension_loaded('http') && class_exists('HttpRequestPool')) || ($curl_ok && function_exists('curl_multi_init'))); $allow_url_fopen_ok = (bool)ini_get('allow_url_fopen'); $filter_ok = extension_loaded('filter'); @@ -237,6 +238,11 @@ if (isset($_GET['from'])){ Enabled Enabled' : 'Disabled'; ?> + + Parse ini file + Enabled + Enabled' : 'Disabled'; ?> + Parallel URL fetching Enabled @@ -260,7 +266,7 @@ if (isset($_GET['from'])){

What does this mean?

    - +
  1. You have everything you need to run properly! Congratulations!
  2. @@ -275,47 +281,53 @@ if (isset($_GET['from'])){
  3. Gettext: You have gettext enabled. No problems here.
  4. - - -
  5. Data filtering: You have the PHP filter extension enabled. No problems here.
  6. - - -
  7. Zlib: You have Zlib enabled. This allows SimplePie to support GZIP-encoded feeds. No problems here.
  8. - -
  9. Zlib: The Zlib extension is not available. SimplePie will ignore any GZIP-encoding, and instead handle feeds as uncompressed text.
  10. - - - -
  11. mbstring and iconv: You have both mbstring and iconv installed! This will allow to handle the greatest number of languages. No problems here.
  12. - -
  13. mbstring: mbstring is installed, but iconv is not.
  14. - -
  15. iconv: iconv is installed, but mbstring is not.
  16. - -
  17. mbstring and iconv: You do not have either of the extensions installed. This will significantly impair your ability to read non-English feeds, as well as even some English ones.
  18. - + + + + +
  19. Data filtering: You have the PHP filter extension enabled. No problems here.
  20. + + +
  21. Zlib: You have Zlib enabled. This allows SimplePie to support GZIP-encoded feeds. No problems here.
  22. + +
  23. Zlib: The Zlib extension is not available. SimplePie will ignore any GZIP-encoding, and instead handle feeds as uncompressed text.
  24. + + + +
  25. mbstring and iconv: You have both mbstring and iconv installed! This will allow to handle the greatest number of languages. No problems here.
  26. + +
  27. mbstring: mbstring is installed, but iconv is not.
  28. + +
  29. iconv: iconv is installed, but mbstring is not.
  30. + +
  31. mbstring and iconv: You do not have either of the extensions installed. This will significantly impair your ability to read non-English feeds, as well as even some English ones.
  32. + - -
  33. Tidy: You have Tidy support installed. No problems here.
  34. - -
  35. Tidy: The Tidy extension is not available. should still work with most feeds, but you may experience problems with some.
  36. - - - -
  37. cURL: You have cURL support installed. No problems here.
  38. - -
  39. cURL: The cURL extension is not available. SimplePie will use fsockopen() instead.
  40. - - - -
  41. Parallel URL fetching: You have HttpRequestPool or curl_multi support installed. No problems here.
  42. - -
  43. Parallel URL fetching: HttpRequestPool or curl_multi support is not available. will use file_get_contents() instead to fetch URLs sequentially rather than in parallel.
  44. - + +
  45. Tidy: You have Tidy support installed. No problems here.
  46. + +
  47. Tidy: The Tidy extension is not available. should still work with most feeds, but you may experience problems with some.
  48. + + + +
  49. cURL: You have cURL support installed. No problems here.
  50. + +
  51. cURL: The cURL extension is not available. SimplePie will use fsockopen() instead.
  52. + + + +
  53. Parallel URL fetching: You have HttpRequestPool or curl_multi support installed. No problems here.
  54. + +
  55. Parallel URL fetching: HttpRequestPool or curl_multi support is not available. will use file_get_contents() instead to fetch URLs sequentially rather than in parallel.
  56. + - -
  57. Data filtering: Your PHP configuration has the filter extension disabled. will not work here.
  58. - + +
  59. Data filtering: Your PHP configuration has the filter extension disabled. will not work here.
  60. + + + +
  61. Parse ini files function : Bad luck : your webhost has decided to block the use of the parse_ini_file function. will not work here. +
  62. GetText: The gettext extension is not available. The system we use to display wallabag in various languages is not available. will not work here.
  63. @@ -340,7 +352,7 @@ if (isset($_GET['from'])){
    - +

    Bottom Line: Yes, you can!

    Your webhost has its act together!

    @@ -351,7 +363,7 @@ if (isset($_GET['from'])){

    Note: Passing this test does not guarantee that will run on your webhost — it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.

    - +

    Bottom Line: Yes, you can!

    For most feeds, it'll run with no problems. There are certain languages that you might have a hard time with though.