<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.phardata.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'phardata.setstub.php',
    1 => 'PharData::setStub',
    2 => 'Dummy function (Phar::setStub is not valid for PharData)',
  ),
  'up' => 
  array (
    0 => 'class.phardata.php',
    1 => 'PharData',
  ),
  'prev' => 
  array (
    0 => 'phardata.setsignaturealgorithm.php',
    1 => 'PharData::setSignatureAlgorithm',
  ),
  'next' => 
  array (
    0 => 'class.pharfileinfo.php',
    1 => 'PharFileInfo',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/phar/PharData/setStub.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phardata.setstub" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">PharData::setStub</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL phar &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">PharData::setStub</span> &mdash; <span class="dc-title">Dummy function (Phar::setStub is not valid for PharData)</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phardata.setstub-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>PharData::setStub</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$stub</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$len</code><span class="initializer"> = -1</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>



  <p class="para rdfs-comment">
   Non-executable tar/zip archives cannot have a stub, so this method simply
   throws an exception.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-phardata.setstub-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">stub</code></dt>
     <dd>
      <p class="para">
       A string or an open stream handle to use as the executable stub for this
       phar archive.  This parameter is ignored.
      </p>
     </dd>
    
    
     <dt><code class="parameter">len</code></dt>
     <dd>
      <p class="para">
       
      </p>
     </dd>
    
   </dl>
  </p>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-phardata.setstub-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-phardata.setstub-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="para">
   Throws <span class="classname"><a href="class.pharexception.php" class="classname">PharException</a></span> on all method calls
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-phardata.setstub-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="phar.setstub.php" class="function" rel="rdfs-seeAlso">Phar::setStub()</a> - Used to set the PHP loader or bootstrap stub of a Phar archive</span></li>
   </ul>
  </p>
 </div>


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