Skip to content

Commit

Permalink
MFH
Browse files Browse the repository at this point in the history
  • Loading branch information
Moriyoshi Koizumi committed Dec 20, 2002
1 parent e4871a4 commit 2615ec3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sapi/cli/php_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,22 +377,19 @@ static void cli_register_file_handles(TSRMLS_D)
php_stream_to_zval(s_err, zerr);

ic.value = *zin;
zval_copy_ctor(&ic.value);
ic.flags = CONST_CS | CONST_PERSISTENT;
ic.flags = CONST_CS;
ic.name = zend_strndup("STDIN", 6);
ic.name_len = 6;
zend_register_constant(&ic TSRMLS_CC);

oc.value = *zout;
zval_copy_ctor(&oc.value);
oc.flags = CONST_CS | CONST_PERSISTENT;
oc.flags = CONST_CS;
oc.name = zend_strndup("STDOUT", 7);
oc.name_len = 7;
zend_register_constant(&oc TSRMLS_CC);

ec.value = *zerr;
zval_copy_ctor(&ec.value);
ec.flags = CONST_CS | CONST_PERSISTENT;
ec.flags = CONST_CS;
ec.name = zend_strndup("STDERR", 7);
ec.name_len = 7;
zend_register_constant(&ec TSRMLS_CC);
Expand Down

0 comments on commit 2615ec3

Please sign in to comment.