mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Pack zend_constant.flags and zend_constant.module_number into reserved space inside zend_constant.value.
This commit is contained in:
parent
7a41e4c0d0
commit
ab8094c666
15 changed files with 68 additions and 60 deletions
|
@ -581,19 +581,16 @@ static void cli_register_file_handles(void) /* {{{ */
|
|||
php_stream_to_zval(s_out, &oc.value);
|
||||
php_stream_to_zval(s_err, &ec.value);
|
||||
|
||||
ic.flags = CONST_CS;
|
||||
ZEND_CONSTANT_SET_FLAGS(&ic, CONST_CS, 0);
|
||||
ic.name = zend_string_init_interned("STDIN", sizeof("STDIN")-1, 0);
|
||||
ic.module_number = 0;
|
||||
zend_register_constant(&ic);
|
||||
|
||||
oc.flags = CONST_CS;
|
||||
ZEND_CONSTANT_SET_FLAGS(&oc, CONST_CS, 0);
|
||||
oc.name = zend_string_init_interned("STDOUT", sizeof("STDOUT")-1, 0);
|
||||
oc.module_number = 0;
|
||||
zend_register_constant(&oc);
|
||||
|
||||
ec.flags = CONST_CS;
|
||||
ZEND_CONSTANT_SET_FLAGS(&ec, CONST_CS, 0);
|
||||
ec.name = zend_string_init_interned("STDERR", sizeof("STDERR")-1, 0);
|
||||
ec.module_number = 0;
|
||||
zend_register_constant(&ec);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue