Re: Shebang parsing

From: Date: Thu, 26 Jan 2012 20:08:46 +0000
Subject: Re: Shebang parsing
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-57530@lists.php.net to get a copy of this message
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 two files (php file + custom php.ini), to use a third one as launcher: #!/bin/sh exec php -dextension=foo.so -c /path/to/myphp.ini /path/to/myfile.php

« previous php.internals (#57530) next »