patch_eaccelerator_issue91.txt

Tim Eilers, 2008-08-04 21:26

Download (898 Bytes)

 
1
Index: Packages/FLOW3/Classes/F3_FLOW3.php
2
===================================================================
3
--- Packages/FLOW3/Classes/F3_FLOW3.php	(revision 1074)
4
+++ Packages/FLOW3/Classes/F3_FLOW3.php	(working copy)
5
@@ -431,6 +431,14 @@
6
 		if (version_compare(phpversion(), '6.0.0', '<') && !(extension_loaded('iconv') || extension_loaded('mbstring'))) {
7
 			die ('FLOW3 requires the PHP extension "mbstring" or "iconv" for PHP versions below 6.0.0 (Error #1207148809)');
8
 		}
9
+		if (extension_loaded('eAccelerator')) {
10
+			$reflect = new ReflectionClass('F3_FLOW3');
11
+			if($reflect->getDocComment() == NULL) {
12
+				die ('FLOW3 requires to compile eAccelerator with the --with-eaccelerator-doc-comment-inclusion flag or to disable it');
13
+			}
14
+			unset($reflect);
15
+		}
16
+		
17
 		set_time_limit(0);
18
 		ini_set('unicode.output_encoding', 'utf-8');
19
 		ini_set('unicode.stream_encoding', 'utf-8');