xref: /PHP-8.2/Zend/tests/const_deprecation.phpt (revision 74859783)
1--TEST--
2Internal constant deprecation
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8var_dump(ZEND_TEST_DEPRECATED);
9var_dump(constant('ZEND_TEST_DEPRECATED'));
10
11const X = ZEND_TEST_DEPRECATED;
12var_dump(X);
13
14?>
15--EXPECTF--
16Deprecated: Constant ZEND_TEST_DEPRECATED is deprecated in %s on line %d
17int(42)
18
19Deprecated: Constant ZEND_TEST_DEPRECATED is deprecated in %s on line %d
20int(42)
21
22Deprecated: Constant ZEND_TEST_DEPRECATED is deprecated in %s on line %d
23int(42)
24