From 42c0b70a60dda8ab465778bfca78eed5a0396277 Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Wed, 17 Dec 2014 21:47:06 +0400 Subject: [PATCH] Replaced "phpversion()" function call with "PHP_VERSION" constant usage. --- samples/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/index.php b/samples/index.php index f25f7f33..a65d8fd9 100644 --- a/samples/index.php +++ b/samples/index.php @@ -2,8 +2,9 @@ include_once 'Sample_Header.php'; use PhpOffice\PhpWord\Settings; + $requirements = array( - 'php' => array('PHP 5.3.0', version_compare(phpversion(), '5.3.0', '>=')), + 'php' => array('PHP 5.3.3', version_compare(PHP_VERSION, '5.3.3', '>=')), 'xml' => array('PHP extension XML', extension_loaded('xml')), 'temp' => array('Temp folder "' . Settings::getTempDir() . '" is writable', is_writable(Settings::getTempDir())), 'zip' => array('PHP extension ZipArchive (optional)', extension_loaded('zip')),