mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Added common E_STRICT error paragraph for ZEND_ACC_ALLOW_STRICT methods called statically. See #41398
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305261 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e5a0171213
commit
ab2480cbc4
10 changed files with 46 additions and 40 deletions
|
@ -521,6 +521,7 @@ is inserted with (e.g.) <function xmlns="http://docbook.org/ns/docbook">domnode_
|
|||
<!ENTITY dom.node.inserted 'This node will not show up in the document unless
|
||||
it is inserted with (e.g.) <function xmlns="http://docbook.org/ns/docbook">DOMNode->appendChild</function>.'>
|
||||
|
||||
<!ENTITY dom.allowstatic '<para xmlns="http://docbook.org/ns/docbook">This method <emphasis>may</emphasis> be called statically, but will issue an <constant>E_STRICT</constant> error.</para>'>
|
||||
|
||||
<!-- FileSystem entities -->
|
||||
<!ENTITY fs.validfp.all '<para xmlns="http://docbook.org/ns/docbook">The file pointer must be valid, and must point to
|
||||
|
|
|
@ -53,8 +53,7 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success; If called statically, returns a
|
||||
<classname>DOMDocument</classname> and issues <constant>E_STRICT</constant>
|
||||
warning.
|
||||
<classname>DOMDocument</classname>&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
|
@ -65,6 +64,7 @@
|
|||
is not generated by libxml and cannot be handled using libxml's error
|
||||
handling functions.
|
||||
</para>
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success; If called statically, returns a
|
||||
<classname>DOMDocument</classname> and issues <constant>E_STRICT</constant>
|
||||
warning.
|
||||
<classname>DOMDocument</classname>&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
|
@ -52,6 +51,7 @@
|
|||
a warning will be generated. This warning is not generated by libxml
|
||||
and cannot be handled using libxml's error handling functions.
|
||||
</para>
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
|
|
|
@ -18,14 +18,6 @@
|
|||
<parameter>filename</parameter>. Unlike loading XML, HTML does not have
|
||||
to be well-formed to load.
|
||||
</para>
|
||||
<para>
|
||||
Though not recommended, this function may also be called statically to load
|
||||
and create a <classname>DOMDocument</classname> object. The static invocation
|
||||
may be used when no <classname>DOMDocument</classname> properties need to be
|
||||
set prior to loading. However, doing so will result an in
|
||||
<link linkend="errorfunc.constants.errorlevels.e-strict">E_STRICT</link>
|
||||
error being generated.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
|
@ -46,8 +38,7 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success; If called statically, returns a
|
||||
<classname>DOMDocument</classname> and issues <constant>E_STRICT</constant>
|
||||
warning.
|
||||
<classname>DOMDocument</classname>&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
|
@ -59,6 +50,7 @@
|
|||
linkend="function.libxml-use-internal-errors">libxml's error handling
|
||||
functions</link>.
|
||||
</para>
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
|
|
|
@ -17,12 +17,6 @@
|
|||
<para>
|
||||
Loads an XML document from a string.
|
||||
</para>
|
||||
<para>
|
||||
This method may also be called statically to load and create a
|
||||
<classname>DOMDocument</classname> object. The static invocation may be
|
||||
used when no <classname>DOMDocument</classname> properties need to be set
|
||||
prior to loading.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
|
@ -53,8 +47,7 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success; If called statically, returns a
|
||||
<classname>DOMDocument</classname> and issues <constant>E_STRICT</constant>
|
||||
warning.
|
||||
<classname>DOMDocument</classname>&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
|
@ -64,6 +57,7 @@
|
|||
a warning will be generated. This warning is not generated by libxml
|
||||
and cannot be handled using libxml's error handling functions.
|
||||
</para>
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
|
@ -87,6 +81,7 @@ echo $doc->saveXML();
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// Issues an E_STRICT error
|
||||
$doc = DOMDocument::loadXML('<root><node/></root>');
|
||||
echo $doc->saveXML();
|
||||
?>
|
||||
|
|
|
@ -84,6 +84,7 @@
|
|||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
|
|
|
@ -59,6 +59,23 @@
|
|||
<literal>ownerDocument</literal> set to &null;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><constant>DOM_NAMESPACE_ERR</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Raised if there is an error with the namespace, as determined by
|
||||
<parameter>qualifiedName</parameter>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
@ -104,22 +121,6 @@ echo $dom->saveXML();
|
|||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><constant>DOM_NAMESPACE_ERR</constant></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Raised if there is an error with the namespace, as determined by
|
||||
<parameter>qualifiedName</parameter>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
|
|
@ -55,6 +55,10 @@
|
|||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<example>
|
||||
|
|
|
@ -56,10 +56,16 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
&return.success; If called statically, returns an
|
||||
<classname>XMLReader</classname>&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
|
|
|
@ -56,10 +56,16 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
&return.success; If called statically, returns an
|
||||
<classname>XMLReader</classname>&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
&dom.allowstatic;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue