Re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread Edin Kadribasic

 Well, here is my patch finally for enabling a shell mode with the command
 line.

 Mainly this patch adds a -S option that will turn off html errors,
 error_prepend_string, error_append_string, and output buffering.

 This will keep people from having to maintain two ini files.

That's excellent. Now, I'm writing a simple MTA in php and having exit()
return error codes instead of printing stuff would be really neat. Is this
doable?

Edin


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread php4

Addressed to: [EMAIL PROTECTED]
  Brian Moon [EMAIL PROTECTED]

 Well, here is my patch finally for enabling a shell mode with the
 command line.

 Mainly this patch adds a -S option that will turn off html errors,
 error_prepend_string, error_append_string, and output buffering.

 This will keep people from having to maintain two ini files.


Please consider adding the function of

   set_time_limit( 0 );

to the -S option, usually when I run PHP from the command line I am not
worried about how long it takes to run.  Long running programs are one
of the common reasons for running PHP from the command line.  If you
want a command line script to time out you can set the time limit in
your program.


Thanks,
Rick



Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread Zeev Suraski

At 12:45 07-09-01, Edin Kadribasic wrote:
  Well, here is my patch finally for enabling a shell mode with the command
  line.
 
  Mainly this patch adds a -S option that will turn off html errors,
  error_prepend_string, error_append_string, and output buffering.
 
  This will keep people from having to maintain two ini files.

That's excellent. Now, I'm writing a simple MTA in php and having exit()
return error codes instead of printing stuff would be really neat. Is this
doable?

Nope - it seriously breaks backwards compatibility.  We can have another 
function that'd do that, shell_exit() or some better name.

Zeev


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread Wez Furlong

On 07/09/01, Zeev Suraski [EMAIL PROTECTED] wrote:
 At 12:45 07-09-01, Edin Kadribasic wrote:
   Mainly this patch adds a -S option that will turn off html errors,
   error_prepend_string, error_append_string, and output buffering.
 That's excellent. Now, I'm writing a simple MTA in php and having exit()
 return error codes instead of printing stuff would be really neat. Is this
 doable?
 Nope - it seriously breaks backwards compatibility.  We can have another 
 function that'd do that, shell_exit() or some better name.

Can we have both the -S patch and shell_exit() for 4.0.7, or is that asking
too much? :-)

--Wez.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread Zeev Suraski

At 13:57 07-09-01, Wez Furlong wrote:
On 07/09/01, Zeev Suraski [EMAIL PROTECTED] wrote:
  At 12:45 07-09-01, Edin Kadribasic wrote:
Mainly this patch adds a -S option that will turn off html errors,
error_prepend_string, error_append_string, and output buffering.
  That's excellent. Now, I'm writing a simple MTA in php and having exit()
  return error codes instead of printing stuff would be really neat. Is this
  doable?
  Nope - it seriously breaks backwards compatibility.  We can have another
  function that'd do that, shell_exit() or some better name.

Can we have both the -S patch and shell_exit() for 4.0.7, or is that asking
too much? :-)

Looking in the rules of RC's, then no - it's not a bug fix, but new 
functionality, which may introduce new problems/bugs.

Zeev


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread Brian Moon

I thought about that.  But I decided against it as we have had some times
where that has saved our hides here.  I think that is best left to be added
on a per script basis.

Brian Moon
--
dealnews.com, Inc.
Makers of dealnews  dealmac
http://dealnews.com/ | http://dealmac.com/


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Brian Moon [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 2:59 AM
Subject: re: [PHP-DEV] patch to make for better shell scripting


 Addressed to: [EMAIL PROTECTED]
   Brian Moon [EMAIL PROTECTED]

  Well, here is my patch finally for enabling a shell mode with the
  command line.

  Mainly this patch adds a -S option that will turn off html errors,
  error_prepend_string, error_append_string, and output buffering.

  This will keep people from having to maintain two ini files.


 Please consider adding the function of

set_time_limit( 0 );

 to the -S option, usually when I run PHP from the command line I am not
 worried about how long it takes to run.  Long running programs are one
 of the common reasons for running PHP from the command line.  If you
 want a command line script to time out you can set the time limit in
 your program.


 Thanks,
 Rick



 Rick Widmer
 Internet Marketing Specialists
 http://www.developersdesk.com




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]