Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91751 invoked by uid 1010); 9 Aug 2007 14:53:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91736 invoked from network); 9 Aug 2007 14:53:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2007 14:53:58 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.162.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.162.224 nz-out-0506.google.com Received: from [64.233.162.224] ([64.233.162.224:40748] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/14-57143-38A2BB64 for ; Thu, 09 Aug 2007 10:53:56 -0400 Received: by nz-out-0506.google.com with SMTP id x7so216384nzc for ; Thu, 09 Aug 2007 07:53:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tVdsKDHqOvwLZl2+KhQDgLHeT2QOLdmkqq5oj0dE6BJrhVOETFIEy24Mc17AYg/XKTCbPk0XW3FH9t7vwt80rjYbr1PyFqrsjTRWkbWHtM7lYNhk9X98uAIARA39Wq8J+z5gCQ9g7z7KmEYiBYXLFhB8hcZv5MW2AuNWlmUHxQ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AXGgSC6ZOj4ibAgTv1zqy935tyXu5tVklGfn8zHkT2htcYmhPx4DrTjK8zUxFtLTc3brRe0bNLM//dza+luSs+fD6xDq+fd/r0nyNrg1PgYkxb9J364HlleTGsZ6MRPG8eBARdUK/BNDJbZ4uxdhAbI2Sx1XPBXS5aR7bH1ZxpU= Received: by 10.114.197.1 with SMTP id u1mr1413751waf.1186671231905; Thu, 09 Aug 2007 07:53:51 -0700 (PDT) Received: by 10.114.205.19 with HTTP; Thu, 9 Aug 2007 07:53:46 -0700 (PDT) Message-ID: <10845a340708090753m59712c66ga914b18ca6553489@mail.gmail.com> Date: Thu, 9 Aug 2007 15:53:46 +0100 Reply-To: RQuadling@GoogleMail.com To: "Nuno Lopes" Cc: PHPdev In-Reply-To: <00bf01c7da8e$a44a9170$0100a8c0@pc07653> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10845a340708090043s35e21c9bm5b2355977bf5c1e0@mail.gmail.com> <00bf01c7da8e$a44a9170$0100a8c0@pc07653> Subject: Re: [PHP-DEV] Getting Windows exec to work better. From: rquadling@googlemail.com ("Richard Quadling") On 09/08/07, Nuno Lopes wrote: > Things are not that simple. > I would advise you to read a more than one year thread about the very same > subject: http://marc.info/?l=php-dev&m=113919491216978 > > Nuno > > > ----- Original Message ----- > From: "Richard Quadling" > To: "PHP Developers Mailing List" > Sent: Thursday, August 09, 2007 8:43 AM > Subject: [PHP-DEV] Getting Windows exec to work better. > > > > Hi. > > > > http://bugs.php.net/bug.php?id=25361 > > > > I supplied a patch to fix this bug. > > > > The issue is NOT a PHP bug, but a "that's how it is on windows" issue. > > > > On *nix, if you want to exec a program via PHP whose program name or > > parameters contain spaces, do you need to use a pair of double quotes > > around the name/parameter? If so, are there any issues if you have > > many sets of double quotes? If not, then this is a difference between > > *nix and windows for the operation of PHP. > > > > With the patch it should deal with this, allowing PHP userland code to > > operate in the same way on both platforms. > > > > If someone could take a look, I'd be grateful. Ok. Thanks for the link. I have read similar notes but no response as to why the patches supplied have NOT been committed. IIRC ... [2007-08-03 10:03:00] we don't care about 9x [2007-08-03 10:03:27] RichardQ, did you test it on recent windows too? I wonder if we can have more tests about this problem (if possible) Is PHP on 9x "supported"? I'm using XP, and from the command line, calling ... %comspec% /s /c ""program name here with spaces" "parameter here with spaces"" works fine. e.g. %comspec% /c ""C:\Program Files\Internet Explorer\iexplore.exe" "http://www.google.com/search?q=php with spaces"" Loads internet explorer with the appropriate google page. In PHP ... as does ... cd "Program Files\Internet Explorer" %comspec% /s /c "iexplore.exe "http://www.google.com/search?q=php with spaces"" But having to wrap your entire command line with quotes is not consistent with *nix platforms. And for the sake of a few additional characters in the exec method for windows (with the split for NT+ vs 9x), then this would save a lot of headache and once again, make PHP windows compatible. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"