Re: [PHP] register_argc_argv directive
On 4/18/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, April 18, 2007 9:04 am, Bagus Nugroho wrote: I'm confuse about usage of php.ini directive register_argc_argv. Is used for command line purpose only? I suspect that in CGI (and possibly even FCGI) $argv and $argc may also end up being populated, due to the way CGI works. But, yes, essentially you'd be using those in CLI in most circumstances. I'm not sure why you'd want to not fill in argv/argc in CLI... But I suppose if you've got a fancy GetOPTS package of some sort going, you might need that turned off or something... Or maybe there's some sort of big time savings to turn them off... There may even be Security Considerations for some people/cases where having those off is better... I'm just making up answers as I go here for why that setting might even exist, but I guess somebody needed it sometime in the past. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php $argv and $argc came in way handy when I wrote several php-gtk apps a few years ago, which uses the CLI exe version... David
Re: [PHP] register_argc_argv directive
On Thu, April 19, 2007 8:37 am, David Giragosian wrote: $argv and $argc came in way handy when I wrote several php-gtk apps a few years ago, which uses the CLI exe version... They are way handy for any CLI. The question I'm kinda wondering is what purpose is served by having a php.ini setting to turn the dang things *OFF*?... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] register_argc_argv directive
Richard Lynch wrote: On Thu, April 19, 2007 8:37 am, David Giragosian wrote: $argv and $argc came in way handy when I wrote several php-gtk apps a few years ago, which uses the CLI exe version... They are way handy for any CLI. The question I'm kinda wondering is what purpose is served by having a php.ini setting to turn the dang things *OFF*?... I seem to recall the theory behind it is that it saves some pointless parsing when running a SAPI that won't use them. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] register_argc_argv directive
Hi All, I'm confuse about usage of php.ini directive register_argc_argv. Is used for command line purpose only? Thanks in adavance bn
Re: [PHP] register_argc_argv directive
On Wed, April 18, 2007 9:04 am, Bagus Nugroho wrote: I'm confuse about usage of php.ini directive register_argc_argv. Is used for command line purpose only? I suspect that in CGI (and possibly even FCGI) $argv and $argc may also end up being populated, due to the way CGI works. But, yes, essentially you'd be using those in CLI in most circumstances. I'm not sure why you'd want to not fill in argv/argc in CLI... But I suppose if you've got a fancy GetOPTS package of some sort going, you might need that turned off or something... Or maybe there's some sort of big time savings to turn them off... There may even be Security Considerations for some people/cases where having those off is better... I'm just making up answers as I go here for why that setting might even exist, but I guess somebody needed it sometime in the past. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] register_argc_argv
What does this parameter do in PHP.ini, and what would happen if I turned it off? From reading the PHP site, it appears this is only useful if you use PHP from the command line, is that right? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php