php-src/Zend/zend_constants.stub.php
DanielEScherzer 8f3cdf6236
gen_stub: Add support for attributes on constants in stubs (#18735)
Update to PHP-Parser 5.5.0 and add support for attributes on constants in
stubs. For now, I have only migrated over E_STRICT, once the support is in
place I'll do a larger migration of the existing deprecated constants.

In the process, fix the logic in `copy_zend_constant()` for copying attributes
when a constant is copied; just increase the reference count for the attributes
table rather than trying to duplicate the contents.
2025-06-05 14:46:46 -07:00

140 lines
1.9 KiB
PHP

<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue E_ERROR
*/
const E_ERROR = UNKNOWN;
/**
* @var int
* @cvalue E_WARNING
*/
const E_WARNING = UNKNOWN;
/**
* @var int
* @cvalue E_PARSE
*/
const E_PARSE = UNKNOWN;
/**
* @var int
* @cvalue E_NOTICE
*/
const E_NOTICE = UNKNOWN;
/**
* @var int
* @cvalue E_CORE_ERROR
*/
const E_CORE_ERROR = UNKNOWN;
/**
* @var int
* @cvalue E_CORE_WARNING
*/
const E_CORE_WARNING = UNKNOWN;
/**
* @var int
* @cvalue E_COMPILE_ERROR
*/
const E_COMPILE_ERROR = UNKNOWN;
/**
* @var int
* @cvalue E_COMPILE_WARNING
*/
const E_COMPILE_WARNING = UNKNOWN;
/**
* @var int
* @cvalue E_USER_ERROR
*/
const E_USER_ERROR = UNKNOWN;
/**
* @var int
* @cvalue E_USER_WARNING
*/
const E_USER_WARNING = UNKNOWN;
/**
* @var int
* @cvalue E_USER_NOTICE
*/
const E_USER_NOTICE = UNKNOWN;
/**
* @var int
* @cvalue E_STRICT
* @todo Remove in PHP 9.0
*/
#[\Deprecated(since: '8.4', message: 'the error level was removed')]
const E_STRICT = UNKNOWN;
/**
* @var int
* @cvalue E_RECOVERABLE_ERROR
*/
const E_RECOVERABLE_ERROR = UNKNOWN;
/**
* @var int
* @cvalue E_DEPRECATED
*/
const E_DEPRECATED = UNKNOWN;
/**
* @var int
* @cvalue E_USER_DEPRECATED
*/
const E_USER_DEPRECATED = UNKNOWN;
/**
* @var int
* @cvalue E_ALL
*/
const E_ALL = UNKNOWN;
/**
* @var int
* @cvalue DEBUG_BACKTRACE_PROVIDE_OBJECT
*/
const DEBUG_BACKTRACE_PROVIDE_OBJECT = UNKNOWN;
/**
* @var int
* @cvalue DEBUG_BACKTRACE_IGNORE_ARGS
*/
const DEBUG_BACKTRACE_IGNORE_ARGS = UNKNOWN;
/**
* @var bool
* @cvalue ZTS_V
*/
const ZEND_THREAD_SAFE = UNKNOWN;
/**
* @var bool
* @cvalue ZEND_DEBUG
*/
const ZEND_DEBUG_BUILD = UNKNOWN;
/* Special constants true/false/null. */
/**
* @var bool
* @undocumentable
*/
const TRUE = true;
/**
* @var bool
* @undocumentable
*/
const FALSE = false;
/**
* @var null
* @undocumentable
*/
const NULL = null;