Re: CLI & max_execution_time

From: Date: Sun, 24 Mar 2002 14:40:10 +0000
Subject: Re: CLI & max_execution_time
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-81720@lists.php.net to get a copy of this message
At 15:32 24.03.2002, Markus Fischer wrote:
On Sun, Mar 24, 2002 at 03:04:18PM +0100, Marcus Börger wrote : I do not think it is a good idea to have many 'special ways' in cLI. Such as always registering argc/argv we have already. For me i would more likly have a special section in php.ini to set all this.
    You don't seem to undertand. CLI _is_ special. It lives in
    another environment then the apache/cgi SAPI does.
Of cause i do - but i would like it to use most of the environment we have. In special it uses the php.ini so why not give it a special section to make it clear where the differences are.
    How come you think treating the CLI version the same is a
    good idea when they in fact have to work under very different
    environments/conditions ?
Using a special section for CLI would allow providing such different conditions.
    Would you EVER expect a bash/perl/awk/sed/python/nameit
    script by >default< only run a certain amount of time, namely
    it's maximum execution time ? Certainly not.
No i don't but is a feature we have so why not disable it by default ini entry instead of implementing a work around?
marcus example *default* section: [CLI] register_argc_argv = On max_execution_time = Off memory_limit = Off engine = Off zlib.output_compression = Off safe_mode = Off display_errors = On display_startup_errors = On html_errors = Off default_mimetype = default_charset =
    The problem is, as long as you do not have such a
    configuration file, you're really lost. when you install PHP,
    the ini file is NOT installed. And, it can and I make you a
    pledge it will confuse people.
    I think you just have to live with that the CLI version is
    different and therefore needs to be handled different in some
    aspects (which in fact are required to truly make use of it).
    - Markus
-- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc


« previous php.dev (#81720) next »