Re: [PHP-DEV] Shebang parsing

2012-01-27 Thread jpauli
Some may also read the execve() linux man page. It has hints about argument parsing and shebangs :) http://linux.die.net/man/2/execve Julien.P 2012/1/26 Ángel González keis...@gmail.com On 26/01/12 11:35, Kiall Mac Innes wrote: Surely you can detect which operating system you're running on,

Re: [PHP-DEV] Shebang parsing

2012-01-26 Thread devis
Hi, from http://stackoverflow.com/questions/4303128/how-to-use-multiple-arguments-with-a-shebang-i-e 1. Some operating systems simply treat the entire thing as the path. After all, in most operating systems, whitespace or dashes are legal in a path. 2. Some

Re: [PHP-DEV] Shebang parsing

2012-01-26 Thread Kiall Mac Innes
Surely you can detect which operating system you're running on, and have PHP act accordingly? (Note: on my phone, haven't read the link!) Kiall Sent from my mobile - Sorry for being short. On Jan 26, 2012 10:08 a.m., de...@lucato.it wrote: Hi, from

Re: [PHP-DEV] Shebang parsing

2012-01-26 Thread Ángel González
On 26/01/12 11:35, Kiall Mac Innes wrote: Surely you can detect which operating system you're running on, and have PHP act accordingly? (Note: on my phone, haven't read the link!) Kiall It's probably not reliable. Note that a simple and completely reliable solution would be instead of having

[PHP-DEV] Shebang parsing

2012-01-25 Thread Robert Eisele
Hi, I currently work on a daemon implemented in PHP and as such, I want to keep all configurations in place while the php binary can be used by other cli scripts with the default /etc/php.ini file. I could recompile PHP and add a new folder to the folder which is scanned for php.ini files. A

Re: [PHP-DEV] Shebang parsing

2012-01-25 Thread Ángel González
On 26/01/12 00:22, Robert Eisele wrote: My specific problem could be tackled in two ways: - Scan . every time cli is called for a php.ini file or - Try to make argv interpretation more intelligent and parse/merge shebang parameters. There are |.user.ini files, but only for CGI/FastCGI

RE: [PHP-DEV] Shebang parsing

2012-01-25 Thread Clint M Priest
I've never gotten -d in shebang to work properly, I'd love to see that working. -Original Message- From: Ángel González [mailto:keis...@gmail.com] Sent: Wednesday, January 25, 2012 6:00 PM To: Robert Eisele Cc: PHP internals Subject: Re: [PHP-DEV] Shebang parsing On 26/01/12 00:22

Re: [PHP-DEV] Shebang parsing

2012-01-25 Thread Ferenc Kovacs
it has a length limit, if I remember correctly it is some reall short value on linux. it seems to be 127 character: http://www.in-ulm.de/~mascheck/various/shebang/ 2012/1/26 Clint M Priest cpri...@zerocue.com I've never gotten -d in shebang to work properly, I'd love to see that working. --