Re: I hope this is the last email about this :) (was RFC:

From: Date: Thu, 24 Oct 2002 06:42:07 +0000
Subject: Re: I hope this is the last email about this :) (was RFC:
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.dev 
Request: Send a blank email to php-dev+get-90039@lists.php.net to get a copy of this message
Alan Knowles wrote:
Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do CLI programming, will get a serious WTF reaction from wondering why when they 'echo' stuff, it doesnt appear. The more advanced Users can manually turn off flushing, but for most small, quick scripts (eg. 50%+), this instant flush is going to be perfectly acceptable..
This makes 2+ for having auto flushing :) BTW, real language (i.e. not shell) don't flush. Please let me know if there is real language that do automatic flushing by default. In addition, is it too difficult to write this kind of code? function prompt($prefix) { echo $prefix; flush(); } I think this kind of code will be taught at the first class of programming course. (I could be wrong, since I don't know where people learned programming ;) I probably disable automatic flushing almost always. Why? My script will process XML and other formatted text almost always. Auto-flushing is useless. Let's guess something interesting. How much % of scripts actually needs automatic flushing? My guess is less than 1%. What is yours? That said, does it still worth to have? -- Yasuo Ohgaki
Anyway Just my 2c Regards Alan
It's a very _bad_ default. Fortunately, it's not released yet. That's why I'm against it strongly. IMO, flushing on every output by default is stupid setting. If you ever programmed interactive programs, you should know that unless you're ignorant about efficiency. I guess my questions are too hard to be understood by you compare to the last one. Derick, it seems you're alone so far. http://news.php.net/article.php?group=php.dev&article=89995 Do you finally realize your argument actually did not make sense? (Unless you need stupid PHP/CLI shell that requires start/end tag to do anything, of course ;) I'm going to fix it again unless many people want to make PHP/CLI behave like a shell rather than programming language. Alternatively, could you fix it again? (including Makefile.global) Thank you and I hope this is the last mail about this. PS: If you would like to write INI independent scripts, I suggest you to use php.ini-recommended at least. You don't/ didn't know phps crashing and make test does not work well with php.ini-recommended, nonetheless, you're insisting there is no problems. -- Yasuo Ohgaki


« previous php.dev (#90039) next »