From 8369bb3be97153869f6a39007ef7cd2769614c50 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 21 Aug 2002 10:24:14 +0000
Subject: [PATCH] =?UTF-8?q?pas=20de=20surprises=20avec=20les=20fonctions?=
 =?UTF-8?q?=20ob=5Fget=5Fcontents=20d=C3=A9sactiv=C3=A9es...?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_version.php3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3
index 891e8dd777..326312e3ec 100644
--- a/ecrire/inc_version.php3
+++ b/ecrire/inc_version.php3
@@ -99,8 +99,8 @@ $flag_get_cfg_var = (@get_cfg_var('error_reporting') != "");
 
 if ($flag_function_exists) {
 	$flag_gz = function_exists("gzopen");
-	$flag_obgz = function_exists("ob_gzhandler");
-	$flag_ob = function_exists("ob_start");
+	$flag_ob = (function_exists("ob_start") && function_exists("ob_get_contents"));
+	$flag_obgz = ($flag_ob && function_exists("ob_gzhandler"));
 	$flag_preg_replace = function_exists("preg_replace");
 	$flag_crypt = function_exists("crypt");
 	$flag_wordwrap = function_exists("wordwrap");
-- 
GitLab