Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Boian Bonev
> > i can see just one reason - most people use the same php binary both for cgi > > and shell scripting. if this change is to be introduced in php then at least > > three builds will be performed - for shell, cgi and web server module. btw > > what happened with the change to the build system to

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Andrei Zmievski
On Fri, 07 Sep 2001, Boian Bonev wrote: > i can see just one reason - most people use the same php binary both for cgi > and shell scripting. if this change is to be introduced in php then at least > three builds will be performed - for shell, cgi and web server module. btw > what happened with th

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Brian Moon
To: "Brian Moon" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Stig Sæther Bakken" <[EMAIL PROTECTED]>; "Zeev Suraski" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 10:11 AM Subject: Re: [PHP-DEV] Better shell sc

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Boian Bonev
simultaneous building of both cgi-sapi and another one? b. - Original Message - From: "Andrei Zmievski" <[EMAIL PROTECTED]> To: "Stig Sæther Bakken" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Zeev Suraski
At 18:11 07-09-01, Boian Bonev wrote: >to Zeev: then why not remove 1/3 of the code ifdefed __cpluplus? I've had that patch pending for a while, but waited to see if there are any problems with the new C-only scanner. Zeev -- PHP Development Mailing List To unsubscribe,

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Boian Bonev
IL PROTECTED]>; "Stig Sæther Bakken" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 5:41 PM Subject: Re: [PHP-DEV] Better shell scripting > We could make this part of the -S option that I have just submitted a patch > for. > > Bri

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Andrei Zmievski
On Fri, 07 Sep 2001, Stig Sæther Bakken wrote: > What if we introduced a -p option to PHP that starts the Zend parser > in "PHP mode"? For any other files (include/require), it starts in > "HTML mode" though. How about we have a separate sapi backend that really does all this stuff properly with

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Zeev Suraski
At 17:51 07-09-01, Boian Bonev wrote: >+1 :)) > >and a > >#!/bin/php -p >echo "some string here\n"; >?>some html here ;))) > > >although this requires a patch in Zend/zend_language_scanner.l line 279 :))) >for plain c, and i didn't look where for c++. We no longer have a C++ scanner. Zeev --

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Brian Moon
;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Stig Sæther Bakken" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 9:51 AM Subject: Re: [PHP-DEV] Better shell scripting > +1 :)) > > and a > > #!/bin/php -p > echo "som

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Boian Bonev
;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 12:28 PM Subject: Re: [PHP-DEV] Better shell scripting > What if we introduced a -p option to PHP that starts the Zend parser > in "PHP mode"? For any other files (in

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Stig Sæther Bakken
What if we introduced a -p option to PHP that starts the Zend parser in "PHP mode"? For any other files (include/require), it starts in "HTML mode" though. - Stig [<[EMAIL PROTECTED]>] > Yeah, I agree. However, it might make things a bit muddled > for people using it as cgi? How would PHP tell

[PHP-DEV] Better shell scripting

2001-09-07 Thread mikeheald
Yeah, I agree. However, it might make things a bit muddled for people using it as cgi? How would PHP tell if the following was PHP code or if its supposed to be echoed to the web browser? I would rather see a -shell option which does what you describe. Mike (long-time listener, first-time poster