mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
15 lines
236 B
PHP
15 lines
236 B
PHP
--TEST--
|
|
The E_STRICT constant is deprecated
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(E_ALL);
|
|
var_dump(E_STRICT);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
int(30719)
|
|
|
|
Deprecated: Constant E_STRICT is deprecated since 8.4, the error level was removed in %s on line %d
|
|
int(2048)
|