From b11da1249707c858a1783c35e01acdb128e3de96 Mon Sep 17 00:00:00 2001 From: Marieke Date: Fri, 14 Nov 2014 12:03:05 +0100 Subject: [PATCH] Added check if iconv is loaded --- src/phpDocumentor/Reflection/FileReflector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phpDocumentor/Reflection/FileReflector.php b/src/phpDocumentor/Reflection/FileReflector.php index c889614e..6d23cc21 100644 --- a/src/phpDocumentor/Reflection/FileReflector.php +++ b/src/phpDocumentor/Reflection/FileReflector.php @@ -138,7 +138,7 @@ public function __construct($file, $validate = false, $encoding = 'utf-8') $this->contents = file_get_contents($file); $this->context = new Context(); - if (strtolower($encoding) !== 'utf-8') { + if (strtolower($encoding) !== 'utf-8' && extension_loaded('iconv')) { $this->contents = iconv( strtolower($encoding), 'utf-8//IGNORE//TRANSLIT',