Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 9504

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>Predefined Constants</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="libxml.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.libxmlerror.html">libXMLError</a></div>
 <div class="up"><a href="book.libxml.html">libxml</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="libxml.constants" class="appendix">
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <dl>

  
   <dt id="constant.libxml-biglines">
    <strong><code>LIBXML_BIGLINES</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Allows line numbers greater than 65535 to be reported correctly.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available as of PHP 7.0.0 with Libxml &gt;= 2.9.0
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-compact">
    <strong><code>LIBXML_COMPACT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Activate small nodes allocation optimization. This may speed up your
     application without needing to change the code.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available in Libxml &gt;= 2.6.21
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-dtdattr">
    <strong><code>LIBXML_DTDATTR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Default DTD attributes
    </span>
   </dd>

  
  
   <dt id="constant.libxml-dtdload">
    <strong><code>LIBXML_DTDLOAD</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Load the external subset
    </span>
   </dd>

  
  
   <dt id="constant.libxml-dtdvalid">
    <strong><code>LIBXML_DTDVALID</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Validate with the DTD
    </span>
   </dd>

  
  
   <dt id="constant.libxml-html-noimplied">
    <strong><code>LIBXML_HTML_NOIMPLIED</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Sets HTML_PARSE_NOIMPLIED flag, which turns off the
     automatic adding of implied html/body... elements.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available in Libxml &gt;= 2.7.7 (as of PHP &gt;= 5.4.0)
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-html-nodefdtd">
    <strong><code>LIBXML_HTML_NODEFDTD</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Sets HTML_PARSE_NODEFDTD flag, which prevents a default doctype
     being added when one is not found.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available in Libxml &gt;= 2.7.8 (as of PHP &gt;= 5.4.0)
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-noblanks">
    <strong><code>LIBXML_NOBLANKS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Remove blank nodes
    </span>
   </dd>

  
  
   <dt id="constant.libxml-nocdata">
    <strong><code>LIBXML_NOCDATA</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Merge CDATA as text nodes
    </span>
   </dd>

  
  
   <dt id="constant.libxml-noemptytag">
    <strong><code>LIBXML_NOEMPTYTAG</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Expand empty tags (e.g. <em>&lt;br/&gt;</em> to
     <em>&lt;br&gt;&lt;/br&gt;</em>)
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      This option is currently just available in the
      <a href="domdocument.save.html" class="xref">DOMDocument::save</a> and
      <a href="domdocument.savexml.html" class="xref">DOMDocument::saveXML</a> functions.
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-noent">
    <strong><code>LIBXML_NOENT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Substitute entities
    </span>
   </dd>

  
  
   <dt id="constant.libxml-noerror">
    <strong><code>LIBXML_NOERROR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Suppress error reports
    </span>
   </dd>

  
  
   <dt id="constant.libxml-nonet">
    <strong><code>LIBXML_NONET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Disable network access when loading documents
    </span>
   </dd>

  
  
   <dt id="constant.libxml-nowarning">
    <strong><code>LIBXML_NOWARNING</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Suppress warning reports
    </span>
   </dd>

  
  
   <dt id="constant.libxml-noxmldecl">
    <strong><code>LIBXML_NOXMLDECL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Drop the XML declaration when saving a document
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available in Libxml &gt;= 2.6.21
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-nsclean">
    <strong><code>LIBXML_NSCLEAN</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Remove redundant namespace declarations
    </span>
   </dd>

  
  
   <dt id="constant.libxml-parsehuge">
    <strong><code>LIBXML_PARSEHUGE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects 
     limits like maximum depth of a document or the entity recursion, as well as limits of the 
     size of text nodes.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available in Libxml &gt;= 2.7.0 (as of PHP &gt;= 5.3.2 and PHP &gt;= 5.2.12)
     </p>
    </p></blockquote>    
   </dd>

  
  
   <dt id="constant.libxml-pedantic">
    <strong><code>LIBXML_PEDANTIC</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Sets XML_PARSE_PEDANTIC flag, which enables pedantic error reporting.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Available as of PHP &gt;= 5.4.0
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.libxml-xinclude">
    <strong><code>LIBXML_XINCLUDE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Implement XInclude substitution
    </span>
   </dd>

  
  
   <dt id="constant.libxml-err-error">
    <strong><code>LIBXML_ERR_ERROR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A recoverable error
    </span>
   </dd>

  
  
   <dt id="constant.libxml-err-fatal">
    <strong><code>LIBXML_ERR_FATAL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A fatal error
    </span>
   </dd>

  
  
   <dt id="constant.libxml-err-none">
    <strong><code>LIBXML_ERR_NONE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No errors
    </span>
   </dd>

  
  
   <dt id="constant.libxml-err-warning">
    <strong><code>LIBXML_ERR_WARNING</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A simple warning
    </span>
   </dd>

  
  
   <dt id="constant.libxml-version">
    <strong><code>LIBXML_VERSION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     libxml version like 20605 or 20617
    </span>
   </dd>

  
  
   <dt id="constant.libxml-dotted-version">
    <strong><code>LIBXML_DOTTED_VERSION</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     libxml version like 2.6.5 or 2.6.17
    </span>
   </dd>

  
  
   <dt id="constant.libxml-schema-create">
    <strong><code>LIBXML_SCHEMA_CREATE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Create default/fixed value nodes during XSD schema validation
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Only available in Libxml &gt;= 2.6.14 (as of PHP &gt;= 5.5.2)
     </p>
    </p></blockquote>    
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="libxml.resources.html">Resource Types</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.libxmlerror.html">libXMLError</a></div>
 <div class="up"><a href="book.libxml.html">libxml</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>