Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57530 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22614 invoked from network); 26 Jan 2012 20:04:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2012 20:04:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:36334] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/50-19007-FB1B12F4 for ; Thu, 26 Jan 2012 15:04:15 -0500 Received: by wibhm4 with SMTP id hm4so840098wib.29 for ; Thu, 26 Jan 2012 12:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=mjrre/5/+Y5U6mdrA3qJ1+NongMAWF8YDRDw3cUHfQA=; b=BzzKW4xCEUxKyZ1lGKrCmwYPup0tQeBBk3gneLNpC0KRteJyiWCwp1M7YuGgwXMj3q ORbNd6dVMi4uwmSnuEGEa2TgdDZIVpHt6+4l1H9oPqsut2VRis7mhmMIQX0zVgSgus1o Jr7pxwNTNhr7P/r1nGHRyUfW55JfXPmercjBA= Received: by 10.180.92.73 with SMTP id ck9mr6271243wib.2.1327608252736; Thu, 26 Jan 2012 12:04:12 -0800 (PST) Received: from [192.168.1.26] (12.Red-83-42-240.dynamicIP.rima-tde.net. [83.42.240.12]) by mx.google.com with ESMTPS id l6sm7170629wiv.11.2012.01.26.12.04.10 (version=SSLv3 cipher=OTHER); Thu, 26 Jan 2012 12:04:11 -0800 (PST) Message-ID: <4F21B2CE.3060409@gmail.com> Date: Thu, 26 Jan 2012 21:08:46 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Kiall Mac Innes CC: devis@lucato.it, Ferenc Kovacs , PHP internals References: <4F20978D.2090605@gmail.com> <9570D903A3BECE4092E924C2985CE48539BC5EA4@MBX202.domain.local> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Shebang parsing From: keisial@gmail.com (=?ISO-8859-1?Q?=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=foo.so -c /path/to/myphp.ini /path/to/myfile.php