mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Remove unnecessary usage of CONST_CS
Closes GH-9685.
This commit is contained in:
parent
289822d3ad
commit
77ee92a50c
17 changed files with 58 additions and 60 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue