<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.xsltprocessor.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'xsltprocessor.setsecurityprefs.php',
    1 => 'XSLTProcessor::setSecurityPrefs',
    2 => 'Set security preferences',
  ),
  'up' => 
  array (
    0 => 'class.xsltprocessor.php',
    1 => 'XSLTProcessor',
  ),
  'prev' => 
  array (
    0 => 'xsltprocessor.setprofiling.php',
    1 => 'XSLTProcessor::setProfiling',
  ),
  'next' => 
  array (
    0 => 'xsltprocessor.transformtodoc.php',
    1 => 'XSLTProcessor::transformToDoc',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xsl/xsltprocessor/setsecurityprefs.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="xsltprocessor.setsecurityprefs" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XSLTProcessor::setSecurityPrefs</h1>
  <p class="verinfo">(PHP &gt;= 5.4.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">XSLTProcessor::setSecurityPrefs</span> &mdash; <span class="dc-title">Set security preferences</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-xsltprocessor.setsecurityprefs-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>XSLTProcessor::setSecurityPrefs</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$preferences</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Sets the security preferences.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-xsltprocessor.setsecurityprefs-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">preferences</code></dt>
     <dd>
      <p class="para">
       The new security preferences. The following constants can be ORed:
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-read-file">XSL_SECPREF_READ_FILE</a></code></strong>,
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-write-file">XSL_SECPREF_WRITE_FILE</a></code></strong>,
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-create-directory">XSL_SECPREF_CREATE_DIRECTORY</a></code></strong>,
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-read-network">XSL_SECPREF_READ_NETWORK</a></code></strong>,
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-write-network">XSL_SECPREF_WRITE_NETWORK</a></code></strong>. Alternatively,
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-none">XSL_SECPREF_NONE</a></code></strong> or
       <strong><code><a href="xsl.constants.php#constant.xsl-secpref-default">XSL_SECPREF_DEFAULT</a></code></strong> can be passed.
      </p>
     </dd>
    
   </dl>
   </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-xsltprocessor.setsecurityprefs-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the old security preferences.
  </p>
 </div>

</div><?php manual_footer($setup); ?>