Skip to content

Commit 1cc5369

Browse files
committed
deprecate E_STRICT constant
1 parent 4600a4a commit 1cc5369

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

Zend/tests/e_strict-deprecated.phpt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
The E_STRICT constant is deprecated
3+
--FILE--
4+
<?php
5+
6+
var_dump(E_ALL);
7+
var_dump(E_STRICT);
8+
?>
9+
--EXPECTF--
10+
int(30719)
11+
12+
Deprecated: Constant E_STRICT is deprecated in %s on line %d
13+
int(2048)

Zend/zend_constants.stub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070

7171
/**
7272
* @var int
73-
* @cvalue E_STRICT
73+
* @cvalue 1 << 11L
74+
* @deprecated
7475
*/
7576
const E_STRICT = UNKNOWN;
7677

Zend/zend_constants_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)