From e885361eab7c181fe3b2e6923ced3de43ba3e285 Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 1 Jul 2017 20:15:42 +0100 Subject: [PATCH] make makefile for docs compatible with php 5.6 --- doc/convert.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/convert.php b/doc/convert.php index 8e7f7f0..1894c2f 100644 --- a/doc/convert.php +++ b/doc/convert.php @@ -33,7 +33,14 @@ if (version_compare(PHP_VERSION,'5.4',"<")) } else { - $proc->setSecurityPreferences(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); + if(is_callable(array($proc, 'setSecurityPreferences'))) + { + $proc->setSecurityPreferences(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); + } + else + { + $proc->setSecurityPrefs(XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_FILE); + } } $proc->importStyleSheet($xsl); // attach the xsl rules -- 2.43.0