diff options
Diffstat (limited to 'redis.php')
-rw-r--r-- | redis.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,9 @@ namespace Remi; if (PHP_VERSION_ID < 70400 || !extension_loaded("ffi")) { die("PHP 7.4 with ffi extension required\n"); } +if (PHP_SAPI != "cli") { + Header('Content-Type: text/plain'); +} printf("PHP version %s\n", PHP_VERSION); if (PHP_SAPI == "cli" && !class_exists("\\Remi\\Redis")) { printf("Fallback on manual load\n\n"); |