Remove unnecessary usage of CONST_CS

Closes GH-9685.
This commit is contained in:
Jorg Adam Sowa 2022-11-28 17:12:07 +01:00 committed by GitHub
parent 289822d3ad
commit 77ee92a50c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 58 additions and 60 deletions

View file

@ -510,7 +510,7 @@ ZEND_FUNCTION(define)
register_constant:
/* non persistent */
ZEND_CONSTANT_SET_FLAGS(&c, CONST_CS, PHP_USER_CONSTANT);
ZEND_CONSTANT_SET_FLAGS(&c, 0, PHP_USER_CONSTANT);
c.name = zend_string_copy(name);
if (zend_register_constant(&c) == SUCCESS) {
RETURN_TRUE;