mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Revert "Revert "Remove name field from the zend_constant struct (#10954)""
This reverts commit 9f4bd3040d
.
This commit is contained in:
parent
149fb8fc34
commit
ad1b70d67e
15 changed files with 68 additions and 81 deletions
|
@ -558,16 +558,13 @@ static void cli_register_file_handles(void)
|
|||
php_stream_to_zval(s_err, &ec.value);
|
||||
|
||||
Z_CONSTANT_FLAGS(ic.value) = 0;
|
||||
ic.name = zend_string_init_interned("STDIN", sizeof("STDIN")-1, 0);
|
||||
zend_register_constant(&ic);
|
||||
zend_register_internal_constant("STDIN", sizeof("STDIN")-1, &ic);
|
||||
|
||||
Z_CONSTANT_FLAGS(oc.value) = 0;
|
||||
oc.name = zend_string_init_interned("STDOUT", sizeof("STDOUT")-1, 0);
|
||||
zend_register_constant(&oc);
|
||||
zend_register_internal_constant("STDOUT", sizeof("STDOUT")-1, &oc);
|
||||
|
||||
Z_CONSTANT_FLAGS(ec.value) = 0;
|
||||
ec.name = zend_string_init_interned("STDERR", sizeof("STDERR")-1, 0);
|
||||
zend_register_constant(&ec);
|
||||
zend_register_internal_constant("STDERR", sizeof("STDERR")-1, &ec);
|
||||
}
|
||||
|
||||
static const char *param_mode_conflict = "Either execute direct code, process stdin or use a file.\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue