Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42468 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85717 invoked from network); 4 Jan 2009 12:10:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2009 12:10:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.242 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.132.242 an-out-0708.google.com Received: from [209.85.132.242] ([209.85.132.242:10762] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/51-07052-747A0694 for ; Sun, 04 Jan 2009 07:10:47 -0500 Received: by an-out-0708.google.com with SMTP id b2so2547333ana.38 for ; Sun, 04 Jan 2009 04:10:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tA4AEQtdKXSns4hnWLg+YbP3yOq5dBFOMEz7Fn4Jj28=; b=veqgKuCfB6VQDEF+kAWGLU10NaZqscY/f2/uYNsr4+nM8S/GE3DSkBdy4SWxoT2dkg S807qYITs4sZr8mUaZ/eT5tEpY5fiEh+wxBXwxOX1rZdggELtDyKJGJQJ9Q+YjWxnLiQ /g3ckqkIIihX1Nr+xUHtZz5a5SrYFIRkfBPvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=R3ElzX9Rn70pBztxBP5BlNjA/Bm0pDFVvuWdOdnD5yR29bZFlKC/jYl3ZyHW7XPh8I DpGUpei5D4QPH8dEHcnVF0AplggEgmZBXY7zrYBcGH1jLhQfo3Gc9eWaAQyMG2WUdEuu EgGtpg9OzFIIx6+NbEwRVbSj0YUk6VdmtE2n0= Received: by 10.100.253.7 with SMTP id a7mr10550486ani.159.1231071044557; Sun, 04 Jan 2009 04:10:44 -0800 (PST) Received: by 10.100.247.11 with HTTP; Sun, 4 Jan 2009 04:10:44 -0800 (PST) Message-ID: Date: Sun, 4 Jan 2009 15:10:44 +0300 To: "Timm Friebe" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [PHP-DEV] php://input in CLI sapi From: indeyets@gmail.com ("Alexey Zakhlestin") On Sat, Jan 3, 2009 at 5:19 PM, Timm Friebe wrote: > Hi, > is there any reason php://input is not supported in CLI sapi? It would be > nice to test raw post data reading in unittests without having to run them > inside a web server sapi and it's only a five-line patch making php://input > read from stdin in cli (attached). "POST DATA" is not relevant to CLI. While I understand what you are trying to do, it feels like a hack. I would suggest to work with "php://stdin" instead -- Alexey Zakhlestin http://www.milkfarmsoft.com/