Re: RFC: CLI behave like SH or PERL/RUBY/PYTHON?
| From: | George Schlossnagle | Date: | Wed, 23 Oct 2002 07:16:19 +0000 |
| Subject: | Re: RFC: CLI behave like SH or PERL/RUBY/PYTHON? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89961@lists.php.net to get a copy of this message | ||
That statement about character devices being line bufffered isn't quite true, but otherwise I would say +0. Line buffering stdout and unbuffering stderr seems to be the default of most languages.
On Wednesday, October 23, 2002, at 02:45 AM, Yasuo Ohgaki wrote:
George Schlossnagle wrote:// Principal ConsultantNot to be snarky, but I for one would prefer PHP to behave like PHP. ;) Without having to make everyone here sort through the commit messages, can you briefly list out the proposed changes?Oops. Sorry, I forgot. It's about flushing output every output statement. SH and current CLI does fflush() on stdout with echo "A" while others don't. And this setting cannot be changed by php.ini. User has to pass "-D implicit_flush=Off" as command line option. As we all know, character devices flushes by newline, so flushing is not really needed. If user would like to do flush, flush() function may be used (or change php.ini) -- Yasuo OhgakiGeorge On Wednesday, October 23, 2002, at 02:26 AM, 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 -- Yasuo Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle
// OmniTI, Inc http://www.omniti.com// (c) 240.460.5234 (e) george@omniti.com // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php