Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 11969

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates a new class instance without invoking the constructor</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="reflectionclass.newinstanceargs.html">ReflectionClass::newInstanceArgs</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="reflectionclass.setstaticpropertyvalue.html">ReflectionClass::setStaticPropertyValue</a></div>
 <div class="up"><a href="class.reflectionclass.html">ReflectionClass</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="reflectionclass.newinstancewithoutconstructor" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClass::newInstanceWithoutConstructor</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0, PHP 7)</p><p class="refpurpose"><span class="refname">ReflectionClass::newInstanceWithoutConstructor</span> &mdash; <span class="dc-title">Creates a new class instance without invoking the constructor</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionclass.newinstancewithoutconstructor-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">object</span> <span class="methodname"><strong>ReflectionClass::newInstanceWithoutConstructor</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Creates a new instance of the class without invoking the constructor.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.newinstancewithoutconstructor-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclass.newinstancewithoutconstructor-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-reflectionclass.newinstancewithoutconstructor-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.6.0</td>
       <td>
        All internal classes can now be instantiated except for those declared
        <a href="language.oop5.final.html" class="link">final</a>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-reflectionclass.newinstancewithoutconstructor-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   A <a href="class.reflectionexception.html" class="classname">ReflectionException</a> if the class is an internal
   class that cannot be instantiated without invoking the constructor. In PHP
   5.6.0 onwards, this exception is limited only to internal classes that are
   <a href="language.oop5.final.html" class="link">final</a>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.newinstancewithoutconstructor-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="reflectionclass.newinstance.html" class="methodname" rel="rdfs-seeAlso">ReflectionClass::newInstance()</a> - Creates a new class instance from given arguments</span></li>
    <li class="member"><span class="methodname"><a href="reflectionclass.newinstanceargs.html" class="methodname" rel="rdfs-seeAlso">ReflectionClass::newInstanceArgs()</a> - Creates a new class instance from given arguments</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="reflectionclass.newinstanceargs.html">ReflectionClass::newInstanceArgs</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="reflectionclass.setstaticpropertyvalue.html">ReflectionClass::setStaticPropertyValue</a></div>
 <div class="up"><a href="class.reflectionclass.html">ReflectionClass</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>