summaryrefslogtreecommitdiffstats
path: root/redis.php
diff options
context:
space:
mode:
Diffstat (limited to 'redis.php')
-rw-r--r--redis.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis.php b/redis.php
index aacc581..7c42d0b 100644
--- a/redis.php
+++ b/redis.php
@@ -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");