mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 14:58:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88684 c90b9560-bf6c-de11-be94-00142212c4b1
198 lines
4.9 KiB
XML
198 lines
4.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<section id="errorfunc.constants">
|
|
&reftitle.constants;
|
|
<simpara>
|
|
These constants are part of the PHP core and always available.
|
|
</simpara>
|
|
<table>
|
|
<title>Errors and Logging</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Value</entry>
|
|
<entry>Constant</entry>
|
|
<entry>Description</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>1</entry>
|
|
<entry>
|
|
<constant>E_ERROR</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Fatal run-time errors. These indicate errors that can not be
|
|
recovered from, such as a memory allocation problem.
|
|
Execution of the script is halted.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>2</entry>
|
|
<entry>
|
|
<constant>E_WARNING</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Run-time warnings (non-fatal errors). Execution of the script is not
|
|
halted.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>4</entry>
|
|
<entry>
|
|
<constant>E_PARSE</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Compile-time parse errors. Parse errors should only be generated by
|
|
the parser.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>8</entry>
|
|
<entry>
|
|
<constant>E_NOTICE</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Run-time notices. Indicate that the script encountered something that
|
|
could indicate an error, but could also happen in the normal course of
|
|
running a script.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>16</entry>
|
|
<entry>
|
|
<constant>E_CORE_ERROR</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Fatal errors that occur during PHP's initial startup. This is like an
|
|
<constant>E_ERROR</constant>, except it is generated by the core of PHP.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>32</entry>
|
|
<entry>
|
|
<constant>E_CORE_WARNING</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Warnings (non-fatal errors) that occur during PHP's initial startup.
|
|
This is like an <constant>E_WARNING</constant>, except it is generated
|
|
by the core of PHP. PHP 4 only.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>64</entry>
|
|
<entry>
|
|
<constant>E_COMPILE_ERROR</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Fatal compile-time errors. This is like an <constant>E_ERROR</constant>,
|
|
except it is generated by the Zend Scripting Engine. PHP 4 only.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>128</entry>
|
|
<entry>
|
|
<constant>E_COMPILE_WARNING</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
Compile-time warnings (non-fatal errors). This is like an
|
|
<constant>E_WARNING</constant>, except it is generated by the Zend
|
|
Scripting Engine. PHP 4 only.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>256</entry>
|
|
<entry>
|
|
<constant>E_USER_ERROR</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
User-generated error message. This is like an
|
|
<constant>E_ERROR</constant>, except it is generated in PHP code by
|
|
using the PHP function <function>trigger_error</function>.
|
|
PHP 4 only.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>512</entry>
|
|
<entry>
|
|
<constant>E_USER_WARNING</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
User-generated warning message. This is like an
|
|
<constant>E_WARNING</constant>, except it is generated in PHP code by
|
|
using the PHP function <function>trigger_error</function>.
|
|
PHP 4 only.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>1024</entry>
|
|
<entry>
|
|
<constant>E_USER_NOTICE</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
User-generated notice message. This is like an
|
|
<constant>E_NOTICE</constant>, except it is generated in PHP code by
|
|
using the PHP function <function>trigger_error</function>.
|
|
PHP 4 only.
|
|
</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>2047</entry>
|
|
<entry>
|
|
<constant>E_ALL</constant>
|
|
(<type>integer</type>)
|
|
</entry>
|
|
<entry>
|
|
All errors and warnings, as supported.
|
|
</entry>
|
|
</row>
|
|
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
</section>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|
|
|