Re: cvs: php4 /sapi/cli README php_cli.c

From: Date: Sun, 24 Mar 2002 17:21:42 +0000
Subject: Re: cvs: php4 /sapi/cli README php_cli.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10651@lists.php.net to get a copy of this message
That is exactly what Derick and I meant and is not a good idea. Cannot we set the default settings _before_ php.ini parsing is done ?! set_time_limit() still works but settings it in PHP.INI does not? IMHO this is unacceptable inconsistency. - Markus On Sun, Mar 24, 2002 at 05:14:34PM -0000, Edin Kadribasic wrote : > edink Sun Mar 24 12:14:34 2002 EDT > > Modified files: > /php4/sapi/cli README php_cli.c > Log: > Override max_execution_time, setting it to unlimited. > > > Index: php4/sapi/cli/README > diff -u php4/sapi/cli/README:1.2 php4/sapi/cli/README:1.3 > --- php4/sapi/cli/README:1.2 Sat Mar 23 18:47:10 2002 > +++ php4/sapi/cli/README Sun Mar 24 12:14:34 2002 > @@ -15,3 +15,4 @@ > * implicit_flush always on > * -r option which allows execution of PHP code directly from > the command line (e.g. php -r 'echo md5("test");' ) > +* max_execution_time is set to unlimited, overriding php.ini setting. > Index: php4/sapi/cli/php_cli.c > diff -u php4/sapi/cli/php_cli.c:1.13 php4/sapi/cli/php_cli.c:1.14 > --- php4/sapi/cli/php_cli.c:1.13 Sat Mar 23 12:10:31 2002 > +++ php4/sapi/cli/php_cli.c Sun Mar 24 12:14:34 2002 > @@ -397,6 +397,7 @@ > SG(options) |= SAPI_OPTION_NO_CHDIR; > zend_alter_ini_entry("html_errors", 12, "0", 1, PHP_INI_SYSTEM, > PHP_INI_STAGE_ACTIVATE); > zend_alter_ini_entry("implicit_flush", 15, "1", 1, PHP_INI_SYSTEM, > PHP_INI_STAGE_ACTIVATE); > + zend_alter_ini_entry("max_execution_time", 19, "0", 1, PHP_INI_SYSTEM, > PHP_INI_STAGE_ACTIVATE); > > while ((c = ap_php_getopt(argc, argv, OPTSTRING)) != -1) { > switch (c) { > > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

« previous php.cvs (#10651) next »