On Wednesday 23 October 2002 08:26, Yasuo Ohgaki wrote: > I thought it's obvious choice, but it seems it's not. > > Which one you prefer CLI behave like > > SH > > or > > PERL/RUBY/PYTHON It would perhaps be easier for us to understand if you explained what problem you were trying to solve. Here are some that I can see: Doing flush after each output operation does carry a performance penalty. The following example illustrates it: php -d implicit_flush=0 -r 'for ($i=0; $i<1000000; $i++) echo $i;' > file This one executes about twice as fast on my machine compared to php with implicit_flush turned on. The example is of course written to emphasise the issue. OTOH, having implicit_flush turned on makes writing interactive command line programs easier. Some programs (like pear installer) might even depend on it. The way cli overwrites some ini settings is a whole different issue and I don't thinks we should start mixing the two on this thread. Edin -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP-DEV] RFC: CLI behave like SH or PERL/RUBY/PYTHON? Yasuo Ohgaki
- Re: [PHP-DEV] RFC: CLI behave like SH or PERL/RUB... George Schlossnagle
- Re: [PHP-DEV] RFC: CLI behave like SH or PERL... Yasuo Ohgaki
- Re: [PHP-DEV] RFC: CLI behave like SH or ... Markus Fischer
- Re: [PHP-DEV] RFC: CLI behave like SH or ... George Schlossnagle
- [PHP-DEV] Re: RFC: CLI behave like SH or PERL/RUB... Yasuo Ohgaki
- Re: [PHP-DEV] Re: RFC: CLI behave like SH or ... Alan Knowles
- Re: [PHP-DEV] Re: RFC: CLI behave like SH... Yasuo Ohgaki
- Re: [PHP-DEV] RFC: CLI behave like SH or PERL/RUB... Edin Kadribasic
- Re: [PHP-DEV] RFC: CLI behave like SH or PERL... Kristian Koehntopp
- Re: [PHP-DEV] RFC: CLI behave like SH or ... George Schlossnagle
- Re: [PHP-DEV] RFC: CLI behave like SH or PERL... Hartmut Holzgraefe
- Re: [PHP-DEV] RFC: CLI behave like SH or ... Yasuo Ohgaki
- Re: [PHP-DEV] RFC: CLI behave like SH... Edin Kadribasic
- Re: [PHP-DEV] RFC: CLI behave li... Yasuo Ohgaki
- Re: [PHP-DEV] RFC: CLI behav... Derick Rethans
- Re: [PHP-DEV] RFC: CLI b... Yasuo Ohgaki
- Re: [PHP-DEV] RFC: CLI b... Derick Rethans
- Re: [PHP-DEV] I hope thi... Yasuo Ohgaki