Re: Re: cvs: php4 / Makefile.global

From: Date: Thu, 24 Oct 2002 15:59:19 +0000
Subject: Re: Re: cvs: php4 / Makefile.global
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.dev 
Request: Send a blank email to php-dev+get-90078@lists.php.net to get a copy of this message
On Thu, Oct 24, 2002 at 03:25:06PM +0900, Yasuo Ohgaki wrote: > >I still do not understand what magical values in php.ini-dist need to > >be applied to run-tests.php and why those values, if they are so > >important, can't be explicitly enabled via ini_set() calls. > > If you install php.ini-recommended as you default php.ini for CLI, > the output is buffered since buffering is enabled in php.ini-recommended. > > This is very frustrating since I see output with 4096 byte chunks. > i.e. type "make test", then many seconds later, I see first chunk of > outputs at once. Ah, I think I understand now. You want to set 'output_buffering = 0', but, because that INI option is marked PHP_INI_PERDIR | PHP_INI_SYSTEM, it's not possible to use ini_set(). Therefore, the remaining options are: - Change the compiled default value for output_buffering to 0. - Allow output_buffering to be set by ini_set(). - Specify 'output_buffering = 0' via the -D command line option for run-tests.php. - Pass a php.ini configuration file to run-tests.php using -C. The first two options are not realistic. I like the -D approach, personally, but that will only work if we execute 'make test' and don't invoke run-tests.php directly. The same applies to -C, except there is a fair chance that the php.ini file that lives is found in the INI search path will be based on the php.ini-dist file, which will set output_buffering. Therefore, I think the best approach is to set output_buffering via the -D option to run-tests.php from the 'make test' target and to rely on the system's php.ini file for other (variable) things. As an aside, it would be nice if we didn't have both php.ini-dist and php.ini-recommended. We should just have a php.ini-dist, but that's just my opinion. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

« previous php.dev (#90078) next »