Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92653 invoked from network); 27 Jan 2012 13:51:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2012 13:51:43 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:37658] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/21-18017-EEBA22F4 for ; Fri, 27 Jan 2012 08:51:43 -0500 Received: by eabm6 with SMTP id m6so488508eab.29 for ; Fri, 27 Jan 2012 05:51:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=k/3NpXdiL1ujUg55FN9rzY4YiTxF/ryNS+Isl28Q5nI=; b=HwtRLvJDOTcMrkLW1Ev01cva6aSxgwmQdcPABX1QIsAWMmWH+gMW9A7Jt++2hq68Aa bUAq6rGBoXWsBgxHcT9je+Y/upGQGaxqYu4F7IM/wAuGQ8NaBMo3aHiggs0cXqOGfdqK cmRv4QKjfNqxqBZfzT/Q/9sR+0sDBt9Cq+B4w= Received: by 10.213.29.67 with SMTP id p3mr1217014ebc.9.1327672299274; Fri, 27 Jan 2012 05:51:39 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.106.12 with HTTP; Fri, 27 Jan 2012 05:50:59 -0800 (PST) In-Reply-To: <4F21B2CE.3060409@gmail.com> References: <4F20978D.2090605@gmail.com> <9570D903A3BECE4092E924C2985CE48539BC5EA4@MBX202.domain.local> <4F21B2CE.3060409@gmail.com> Date: Fri, 27 Jan 2012 14:50:59 +0100 X-Google-Sender-Auth: 0NYkClS6kSfAX1rP8EF8Z4l_7Zc Message-ID: To: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= Cc: Kiall Mac Innes , devis@lucato.it, Ferenc Kovacs , PHP internals Content-Type: multipart/alternative; boundary=0015174bdf12c6c45004b782cb13 Subject: Re: [PHP-DEV] Shebang parsing From: jpauli@php.net (jpauli) --0015174bdf12c6c45004b782cb13 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 =C1ngel Gonz=E1lez > 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=3Dfoo.so -c /path/to/myphp.ini /path/to/myfile.php > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0015174bdf12c6c45004b782cb13--